Permalink
Browse files

Fixed list addition error caused from last code merge

  • Loading branch information...
1 parent e8bff48 commit d8a149c8bea7404fc807506aab0eacdb75d37595 @growlf growlf committed Jul 16, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 cms_themes/__init__.py
View
@@ -43,13 +43,12 @@ def set_themes():
return
theme_templates = []
- theme_static = []
for theme_dir in os.listdir(settings.THEMES_DIR):
if theme_dir in themes:
theme_full_path = os.path.join(settings.THEMES_DIR, theme_dir)
if os.path.isdir(theme_full_path) and 'templates' in os.listdir(theme_full_path):
template_path = os.path.join(theme_full_path, 'templates')
- setattr(settings, 'TEMPLATE_DIRS', (template_path,) + settings.DEFAULT_TEMPLATE_DIRS)
+ setattr(settings, 'TEMPLATE_DIRS', [template_path,] + settings.DEFAULT_TEMPLATE_DIRS)
for template in os.listdir(template_path):
template_display = '%s (%s)' % (template.replace('_', ' ').title().split('.')[0], theme_dir)
theme_templates.append((template, template_display))

0 comments on commit d8a149c

Please sign in to comment.