diff rhodecode/model/__init__.py @ 1271:aa7e45ad0cea beta

Fixed permissions for users groups, group can have create repo permission now. Some code refactor + pep8ify
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 19 Apr 2011 17:28:42 +0200
parents a671db5bdd58
children 47182d3bb9cb
line wrap: on
line diff
--- a/rhodecode/model/__init__.py	Tue Apr 19 17:23:02 2011 +0200
+++ b/rhodecode/model/__init__.py	Tue Apr 19 17:28:42 2011 +0200
@@ -47,16 +47,19 @@
 
 log = logging.getLogger(__name__)
 
+
 def init_model(engine):
-    """Initializes db session, bind the engine with the metadata,
-    Call this before using any of the tables or classes in the model, preferably
-    once in application start
+    """
+    Initializes db session, bind the engine with the metadata,
+    Call this before using any of the tables or classes in the model,
+    preferably once in application start
 
     :param engine: engine to bind to
     """
     log.info("initializing db for %s", engine)
     meta.Base.metadata.bind = engine
 
+
 class BaseModel(object):
     """Base Model for all RhodeCode models, it adds sql alchemy session
     into instance of model