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