# HG changeset patch # User Marcin Kuzminski # Date 2011-02-10 20:56:14 # Node ID ade3414a8b61692c9bd4ea96b790cdbb63af252f # Parent 3790279d2538f66acd49a34a7ea219fc98867dc2 Fixed problems with repository creation diff --git a/rhodecode/model/repo.py b/rhodecode/model/repo.py --- a/rhodecode/model/repo.py +++ b/rhodecode/model/repo.py @@ -50,13 +50,15 @@ class RepoModel(BaseModel): except: self._base_path = None - @property - def base_path(): - if self._base_path is None: - raise Exception('Base Path is empty, try set this after' - 'class initialization when not having ' - 'app_globals available') - return self._base_path + super(RepoModel, self).__init__(sa) + + @property + def base_path(self): + if self._base_path is None: + raise Exception('Base Path is empty, try set this after' + 'class initialization when not having ' + 'app_globals available') + return self._base_path super(RepoModel, self).__init__()