Mercurial > public > src > rhodecode
diff pylons_app/model/hg_model.py @ 374:664a5b8c551a
Added application settings, are now customizable from database
fixed all instances of sqlachemy to be removed() after execution.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 14 Jul 2010 18:31:06 +0200 |
parents | d8d471cfa093 |
children | e9a6783f5502 |
line wrap: on
line diff
--- a/pylons_app/model/hg_model.py Wed Jul 14 18:15:37 2010 +0200 +++ b/pylons_app/model/hg_model.py Wed Jul 14 18:31:06 2010 +0200 @@ -28,7 +28,7 @@ from mercurial import ui from mercurial.hgweb.hgwebdir_mod import findrepos from vcs.exceptions import RepositoryError, VCSError -from pylons_app.model.meta import Session +from pylons_app.model import meta from pylons_app.model.db import Repository from sqlalchemy.orm import joinedload import logging @@ -81,7 +81,7 @@ :param repos_path: path to directory it could take syntax with * or ** for deep recursive displaying repositories """ - sa = Session() + sa = meta.Session() def check_repo_dir(path): """ Checks the repository @@ -122,6 +122,7 @@ repos_list[name].contact = dbrepo.user.full_contact except OSError: continue + meta.Session.remove() return repos_list def get_repos(self):