Mercurial > kallithea
diff rhodecode/lib/db_manage.py @ 1749:8ecc6b8229a5 beta
commit less models
- models don't do any commits(with few exceptions)
- all db transactions should be handled by higher level modules like controllers, celery tasks
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 02 Dec 2011 22:31:13 +0200 |
parents | 48d4fcf04a29 |
children | a87aa385f21c |
line wrap: on
line diff
--- a/rhodecode/lib/db_manage.py Fri Dec 02 00:15:26 2011 +0200 +++ b/rhodecode/lib/db_manage.py Fri Dec 02 22:31:13 2011 +0200 @@ -57,7 +57,7 @@ def init_db(self): engine = create_engine(self.dburi, echo=self.log_sql) init_model(engine) - self.sa = meta.Session() + self.sa = meta.Session def create_tables(self, override=False): """Create a auth database