Changeset 618:d3ac02061d97
- Timestamp:
- 18/05/12 22:53:50 (12 months ago)
- Branch:
- default
- rebase_source:
- 1cc3eaf5e5b67c336e43b73189465fc5ba6a20fe
- File:
-
- 1 edited
-
cyclope/themes.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cyclope/themes.py
r592 r598 45 45 def get_default_themes(): 46 46 global _default_cache 47 path = _DEFAULT_THEMES_ROOT47 path = unicode(_DEFAULT_THEMES_ROOT) 48 48 if _default_cache is None: 49 49 _default_cache = _get_themes(path) … … 54 54 if not hasattr(settings, 'CYCLOPE_LOCAL_THEMES_DIR'): 55 55 return {} 56 path = settings.CYCLOPE_LOCAL_THEMES_DIR56 path = unicode(settings.CYCLOPE_LOCAL_THEMES_DIR) 57 57 if _local_cache is None or not cache: 58 58 _local_cache = _get_themes(path) … … 76 76 def set_global_cache(): 77 77 global _GLOBAL_CACHE 78 _GLOBAL_CACHE = [True] 78 if not _GLOBAL_CACHE: 79 _GLOBAL_CACHE.append(True) 79 80 80 81 def deactivate_global_cache(): 81 82 global _GLOBAL_CACHE 82 _GLOBAL_CACHE = [] 83 if _GLOBAL_CACHE: 84 _GLOBAL_CACHE.pop() 83 85 84 86 if hasattr(settings, 'CYCLOPE_LOCAL_THEMES_DIR'):
Note: See TracChangeset
for help on using the changeset viewer.

