Esempio n. 1
0
 def create_app(self):
     app = super(ImageFieldTest, self).create_app()
     self._instance_path = app.instance_path
     app.instance_path = tempfile.mkdtemp()
     fs.init_app(app, storage, tmp)
     app.register_blueprint(blueprint)
     return app
Esempio n. 2
0
 def create_app(self):
     app = super(ImageFieldTest, self).create_app()
     self._instance_path = app.instance_path
     app.instance_path = tempfile.mkdtemp()
     fs.init_app(app, storage, tmp)
     app.register_blueprint(blueprint)
     return app
Esempio n. 3
0
def init_app(app):
    if 'BUCKETS_PREFIX' not in app.config:
        app.config['BUCKETS_PREFIX'] = '/s'
    fs.init_app(app, resources, avatars, images, chunks, tmp)
Esempio n. 4
0
def init_app(app):
    if 'BUCKETS_PREFIX' not in app.config:
        app.config['BUCKETS_PREFIX'] = '/s'
    fs.init_app(app, resources, avatars, images, chunks, tmp)