예제 #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
예제 #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
예제 #3
0
파일: __init__.py 프로젝트: ldolberg/udata
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)
예제 #4
0
파일: __init__.py 프로젝트: simudream/udata
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)