コード例 #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
ファイル: base.py プロジェクト: timmartin19/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
コード例 #3
0
ファイル: cp2.py プロジェクト: rudyvallejos/GestionItems
def _extract_config():
    from cherrypy.config import configs
    c = configs.get('global', {}).copy()
    c.update(configs['/'])
    return c
コード例 #4
0
ファイル: cp2.py プロジェクト: Electrosoup/ToscaWidgets
def _extract_config():
    from cherrypy.config import configs
    c = configs.get('global', {}).copy()
    c.update(configs['/'])
    return c