Beispiel #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()
Beispiel #2
0
 def __init__(self, *args, **kwargs):
     super(self.__class__, self).__init__(*args, **kwargs)
     operation_tracker.install_tracker()
     current_app.jinja_env.filters.update(filters)
Beispiel #3
0
 def __init__(self, *args, **kwargs):
     super(MongoDebugPanel, self).__init__(*args, **kwargs)
     operation_tracker.install_tracker()
Beispiel #4
0
 def __init__(self, *args, **kwargs):
     """
     Install the tracker
     """
     super(MongoDebugPanel, self).__init__(*args, **kwargs)
     operation_tracker.install_tracker()
Beispiel #5
0
 def __init__(self, *args, **kwargs):
     super(self.__class__, self).__init__(*args, **kwargs)
     operation_tracker.install_tracker()
 def __init__(self, *args, **kwargs):
     super(self.__class__, self).__init__(*args, **kwargs)
     operation_tracker.install_tracker()
Beispiel #7
0
 def __init__(self, *args, **kwargs):
     super(MongoDebugPanel, self).__init__(*args, **kwargs)
     _maybe_patch_jinja_loader(self.jinja_env)
     operation_tracker.install_tracker()
Beispiel #8
0
 def __init__(self, *args, **kwargs):
     super(self.__class__, self).__init__(*args, **kwargs)
     operation_tracker.install_tracker()
     current_app.jinja_env.filters.update(filters)