def init_app(self, app): self.mongo = Mongo(app) self.elastic = Elastic(app) if 'DEFAULT_FILE_STORAGE' in app.config: self.storage = import_by_path(app.config['DEFAULT_FILE_STORAGE'])() self.storage.init_app(app) else: self.storage = self.driver
def init_app(self, app): app.data = self # app.data must be set for locks to work self.mongo = Mongo(app) self.driver = self.mongo.driver self.storage = self.driver self.elastic = Elastic(app, serializer=SuperdeskJSONEncoder(), skip_index_init=True, retry_on_timeout=True)
def init_app(self, app): self.mongo = Mongo(app) self.elastic = Elastic(app) self.custom = CustomDataLayer(app) self.elastic.es.json_encoder = SuperdeskJsonEncoder if 'DEFAULT_FILE_STORAGE' in app.config: self.storage = import_by_path(app.config['DEFAULT_FILE_STORAGE'])() self.storage.init_app(app) else: self.storage = self.driver
def init_app(self, app): self.mongo = Mongo(app) self.elastic = Elastic(app) self.aapmm = AAPMMDatalayer(app) self.storage = self.driver
def init_app(self, app): self.mongo = Mongo(app) self.driver = self.mongo.driver self.storage = self.driver self.elastic = Elastic(app, serializer=SuperdeskJSONEncoder())