예제 #1
0
파일: base.py 프로젝트: OnShift/turbogears
 def linked_file_exists(self, widget):
     key = '/tg_widgets/%s' % widget.mod
     wp = configs.get(key)
     if wp:
         dir = wp.get('static_filter.dir')
         if dir:
             path = os.path.join(dir, widget.name)
             return os.path.exists(path)
     return False
예제 #2
0
 def linked_file_exists(self, widget):
     key = '/tg_widgets/%s' % widget.mod
     wp = configs.get(key)
     if wp:
         dir = wp.get('static_filter.dir')
         if dir:
             path = os.path.join(dir, widget.name)
             return os.path.exists(path)
     return False
예제 #3
0
def _extract_config():
    from cherrypy.config import configs
    c = configs.get('global', {}).copy()
    c.update(configs['/'])
    return c
예제 #4
0
def _extract_config():
    from cherrypy.config import configs
    c = configs.get('global', {}).copy()
    c.update(configs['/'])
    return c