Changeset 2070 for branches/0.9/pylucid_project/pylucid_plugins/__init__.py
- Timestamp:
- 06/25/09 14:55:31 (9 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/0.9/pylucid_project/pylucid_plugins/__init__.py
r1890 r2070 11 11 """ 12 12 _CACHE = None 13 13 14 14 def __init__(self, fs_path, pkg_prefix): 15 15 installed_apps = () … … 21 21 if not os.path.isdir(item_path): 22 22 continue 23 23 24 24 pkg_string = ".".join([pkg_prefix, dir_item]) 25 25 installed_apps += (pkg_string,) 26 26 27 27 template_path = os.path.join(item_path, "templates") 28 28 if os.path.isdir(template_path): 29 29 template_dirs += (template_path,) 30 30 31 # admin_url_file = os.path.join(item_path, "admin_url.py") 32 # if os.path.isfile(admin_url_file): 33 # admin_urls.append(pkg_string + ".admin_url") 34 31 35 self._CACHE = { 32 36 "installed_apps": installed_apps, 33 37 "template_dirs": template_dirs, 34 38 } 35 39 36 40 def get_installed_apps(self): 37 41 return self._CACHE["installed_apps"] 38 42 def get_template_dirs(self): 39 return self._CACHE["template_dirs"] 43 return self._CACHE["template_dirs"]