Mercurial > kallithea
diff rhodecode/websetup.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 | f551007ce085 |
line wrap: on
line diff
--- a/rhodecode/websetup.py Fri Dec 02 00:15:26 2011 +0200 +++ b/rhodecode/websetup.py Fri Dec 02 22:31:13 2011 +0200 @@ -46,5 +46,5 @@ dbmanage.admin_prompt() dbmanage.create_permissions() dbmanage.populate_default_permissions() - Session().commit() + Session.commit() load_environment(conf.global_conf, conf.local_conf, initial=True)