X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=mediagoblin%2Ftools%2Ftheme.py;h=97b041a61a5cb2cb769dcbc9c21b51e591ddb7d6;hb=5b014a08661f718bd92971e71d173a0ea4b62c40;hp=b19b16df2679d911e08270f4ce61e027412ce654;hpb=975be468cfc47e14cafb1b1bc8a6eb0e9f3704a0;p=mediagoblin.git diff --git a/mediagoblin/tools/theme.py b/mediagoblin/tools/theme.py index b19b16df..97b041a6 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,