Show
Ignore:
Timestamp:
06/25/09 14:55:31 (9 months ago)
Author:
JensDiemer
Message:

starting to add a pylucid admin menu...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.9/pylucid_project/pylucid_plugins/__init__.py

    r1890 r2070  
    1111    """ 
    1212    _CACHE = None 
    13      
     13 
    1414    def __init__(self, fs_path, pkg_prefix): 
    1515        installed_apps = () 
     
    2121            if not os.path.isdir(item_path): 
    2222                continue 
    23              
     23 
    2424            pkg_string = ".".join([pkg_prefix, dir_item]) 
    2525            installed_apps += (pkg_string,) 
    26              
     26 
    2727            template_path = os.path.join(item_path, "templates") 
    2828            if os.path.isdir(template_path): 
    2929                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 
    3135        self._CACHE = { 
    3236            "installed_apps": installed_apps, 
    3337            "template_dirs": template_dirs, 
    3438        } 
    35                  
     39 
    3640    def get_installed_apps(self): 
    3741        return self._CACHE["installed_apps"] 
    3842    def get_template_dirs(self): 
    39         return self._CACHE["template_dirs"]     
     43        return self._CACHE["template_dirs"]