def setup_app(env, debug=False, output_path=None, ui_lang='en'): app = Flask('lektor.admin') app.lektor_info = LektorInfo(env, output_path, ui_lang) app.debug = debug app.config['PROPAGATE_EXCEPTIONS'] = True register_modules(app) return app
def setup_app(env, debug=False, output_path=None, lang="en"): app = Flask("lektor.admin") app.lektor_info = LektorInfo(env, output_path, lang) app.debug = debug app.config["PROPAGATE_EXCEPTIONS"] = True register_modules(app) return app
def setup_app(env, debug=False, output_path=None, lang='en'): app = Flask('lektor.admin') app.lektor_info = LektorInfo(env, output_path, lang) app.debug = debug app.config['PROPAGATE_EXCEPTIONS'] = True register_modules(app) return app
def __init__(self, env, debug=False, output_path=None, ui_lang='en', verbosity=0, build_flags=None): Flask.__init__(self, 'lektor.admin', static_url_path='/admin/static') self.lektor_info = LektorInfo(env, output_path, ui_lang, build_flags=build_flags, verbosity=verbosity) self.debug = debug self.config['PROPAGATE_EXCEPTIONS'] = True register_modules(self)
def __init__( self, env, debug=False, output_path=None, ui_lang="en", verbosity=0, extra_flags=None, ): Flask.__init__(self, "lektor.admin", static_url_path="/admin/static") self.lektor_info = LektorInfo( env, output_path, ui_lang, extra_flags=extra_flags, verbosity=verbosity ) self.debug = debug self.config["PROPAGATE_EXCEPTIONS"] = True register_modules(self)