aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2012-07-14 20:23:21 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2012-07-14 20:23:21 -0500
commitfaa74bf9f588557f058627a1456712eba4b8b7e8 (patch)
tree6f58d41dc152745c2195282d845767e1e5a0c145 /mediagoblin
parent04b24107fbe197a8bd278b908651cea14911dff4 (diff)
downloadmediagoblin-faa74bf9f588557f058627a1456712eba4b8b7e8.tar.lz
mediagoblin-faa74bf9f588557f058627a1456712eba4b8b7e8.tar.xz
mediagoblin-faa74bf9f588557f058627a1456712eba4b8b7e8.zip
Store licensing info as well
Diffstat (limited to 'mediagoblin')
-rw-r--r--mediagoblin/tools/theme.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mediagoblin/tools/theme.py b/mediagoblin/tools/theme.py
index b19b16df..4c7a7c0e 100644
--- a/mediagoblin/tools/theme.py
+++ b/mediagoblin/tools/theme.py
@@ -32,7 +32,7 @@ def themedata_for_theme_dir(name, theme_dir):
Given a theme directory, extract important theme information.
"""
# open config
- config = ConfigObj(os.path.join(theme_dir, 'theme.ini'))
+ config = ConfigObj(os.path.join(theme_dir, 'theme.ini')).get('theme')
templates_dir = os.path.join(theme_dir, 'templates')
if not os.path.exists(templates_dir):
@@ -45,6 +45,7 @@ def themedata_for_theme_dir(name, theme_dir):
themedata = {
'name': config.get('name', name),
'description': config.get('description'),
+ 'licensing': config.get('licensing'),
'dir': theme_dir,
'templates_dir': templates_dir,
'assets_dir': assets_dir,