changeset 287:a4461b58fba3

app: cosmetic changes
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 10 Jul 2011 13:54:00 +0200
parents f0288e2a7d09
children e6f585ac9766
files MoinMoin/app.py
diffstat 1 files changed, 13 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/app.py	Sat Jul 09 23:54:24 2011 +0200
+++ b/MoinMoin/app.py	Sun Jul 10 13:54:00 2011 +0200
@@ -37,8 +37,13 @@
 
 from MoinMoin.themes import setup_jinja_env, themed_error
 
+from MoinMoin.util.clock import Clock
+
+
 def create_app(config=None):
-    """simple wrapper around create_app_ext() for flask-script"""
+    """
+    simple wrapper around create_app_ext() for flask-script
+    """
     return create_app_ext(flask_config_file=config)
 
 
@@ -156,7 +161,6 @@
     deinit_backends(app)
 
 
-from MoinMoin.util.clock import Clock
 from MoinMoin.storage.error import StorageError
 from MoinMoin.storage.serialization import serialize, unserialize
 from MoinMoin.storage.backends import router, acl, memory
@@ -164,7 +168,9 @@
 
 
 def init_backends(app):
-    """ initialize the backend """
+    """
+    initialize the backends
+    """
     # A ns_mapping consists of several lines, where each line is made up like this:
     # mountpoint, unprotected backend, protection to apply as a dict
     ns_mapping = app.cfg.namespace_mapping
@@ -226,8 +232,10 @@
 
 
 def setup_user():
-    """ Try to retrieve a valid user object from the request, be it
-    either through the session or through a login. """
+    """
+    Try to retrieve a valid user object from the request, be it
+    either through the session or through a login.
+    """
     # init some stuff for auth processing:
     flaskg._login_multistage = None
     flaskg._login_multistage_name = None