comparison MoinMoin/app.py @ 2925:da84a2c42a92

fix #492 pep8 1.6.2 breaks 83 additional tests
author RogerHaase <haaserd@gmail.com>
date Sun, 22 Feb 2015 11:21:01 -0700
parents 89563f058bb2
children a6bb853c740b
comparison
equal deleted inserted replaced
2924:60116a78e932 2925:da84a2c42a92
23 from flask.ext.cache import Cache 23 from flask.ext.cache import Cache
24 from flask.ext.themes import setup_themes 24 from flask.ext.themes import setup_themes
25 25
26 from jinja2 import ChoiceLoader, FileSystemLoader 26 from jinja2 import ChoiceLoader, FileSystemLoader
27 27
28 from MoinMoin import log
29 logging = log.getLogger(__name__)
30
31 from MoinMoin.constants.misc import ANON 28 from MoinMoin.constants.misc import ANON
32 from MoinMoin.i18n import i18n_init 29 from MoinMoin.i18n import i18n_init
33 from MoinMoin.i18n import _, L_, N_ 30 from MoinMoin.i18n import _, L_, N_
34
35 from MoinMoin.themes import setup_jinja_env, themed_error 31 from MoinMoin.themes import setup_jinja_env, themed_error
36
37 from MoinMoin.util.clock import Clock 32 from MoinMoin.util.clock import Clock
33 from MoinMoin.storage.middleware import protecting, indexing, routing
34 from MoinMoin import auth, config, user
35
36 from MoinMoin import log
37 logging = log.getLogger(__name__)
38 38
39 39
40 def create_app(config=None, create_index=False, create_storage=False): 40 def create_app(config=None, create_index=False, create_storage=False):
41 """ 41 """
42 simple wrapper around create_app_ext() for flask-script 42 simple wrapper around create_app_ext() for flask-script
163 163
164 def destroy_app(app): 164 def destroy_app(app):
165 deinit_backends(app) 165 deinit_backends(app)
166 166
167 167
168 from MoinMoin.storage.middleware import protecting, indexing, routing
169 from MoinMoin import auth, config, user
170
171
172 def init_backends(app): 168 def init_backends(app):
173 """ 169 """
174 initialize the backends 170 initialize the backends
175 """ 171 """
176 # A ns_mapping consists of several lines, where each line is made up like this: 172 # A ns_mapping consists of several lines, where each line is made up like this: