Ejemplo n.º 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()
Ejemplo n.º 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)
Ejemplo n.º 3
0
 def __init__(self, *args, **kwargs):
     super(MongoDebugPanel, self).__init__(*args, **kwargs)
     operation_tracker.install_tracker()
Ejemplo n.º 4
0
 def __init__(self, *args, **kwargs):
     """
     Install the tracker
     """
     super(MongoDebugPanel, self).__init__(*args, **kwargs)
     operation_tracker.install_tracker()
Ejemplo n.º 5
0
 def __init__(self, *args, **kwargs):
     super(self.__class__, self).__init__(*args, **kwargs)
     operation_tracker.install_tracker()
Ejemplo n.º 6
0
 def __init__(self, *args, **kwargs):
     super(self.__class__, self).__init__(*args, **kwargs)
     operation_tracker.install_tracker()
Ejemplo n.º 7
0
 def __init__(self, *args, **kwargs):
     super(MongoDebugPanel, self).__init__(*args, **kwargs)
     _maybe_patch_jinja_loader(self.jinja_env)
     operation_tracker.install_tracker()
Ejemplo n.º 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)