示例#1
0
 def __init__(self, *args, **kwargs):
     """
     We need to patch jinja_env loader to include flask.ext.mongoengine
     templates folder.
     """
     super(MongoDebugPanel, self).__init__(*args, **kwargs)
     self.jinja_env.loader = ChoiceLoader([self.jinja_env.loader,
                       PackageLoader('flask.ext.mongoengine', 'templates')])
     operation_tracker.install_tracker()
示例#2
0
文件: panel.py 项目: PyFansLi/chiki
 def __init__(self, *args, **kwargs):
     super(self.__class__, self).__init__(*args, **kwargs)
     operation_tracker.install_tracker()
     current_app.jinja_env.filters.update(filters)
示例#3
0
 def __init__(self, *args, **kwargs):
     super(MongoDebugPanel, self).__init__(*args, **kwargs)
     operation_tracker.install_tracker()
示例#4
0
 def __init__(self, *args, **kwargs):
     """
     Install the tracker
     """
     super(MongoDebugPanel, self).__init__(*args, **kwargs)
     operation_tracker.install_tracker()
示例#5
0
 def __init__(self, *args, **kwargs):
     super(self.__class__, self).__init__(*args, **kwargs)
     operation_tracker.install_tracker()
示例#6
0
 def __init__(self, *args, **kwargs):
     super(self.__class__, self).__init__(*args, **kwargs)
     operation_tracker.install_tracker()
示例#7
0
 def __init__(self, *args, **kwargs):
     super(MongoDebugPanel, self).__init__(*args, **kwargs)
     _maybe_patch_jinja_loader(self.jinja_env)
     operation_tracker.install_tracker()
示例#8
0
文件: panel.py 项目: txfyteen/chiki
 def __init__(self, *args, **kwargs):
     super(self.__class__, self).__init__(*args, **kwargs)
     operation_tracker.install_tracker()
     current_app.jinja_env.filters.update(filters)