Mercurial > kallithea
changeset 8873:a349211f875e
db: inline Repository._ui
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 21 Apr 2021 13:34:12 +0200 |
parents | 462064bd9489 |
children | cb733c39f658 |
files | kallithea/model/db.py |
diffstat | 1 files changed, 2 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/model/db.py Wed May 12 00:43:38 2021 +0200 +++ b/kallithea/model/db.py Wed Apr 21 13:34:12 2021 +0200 @@ -1097,14 +1097,6 @@ path_prefix = self.group.full_path_splitted if self.group else [] return kallithea.URL_SEP.join(path_prefix + [repo_name]) - @property - def _ui(self): - """ - Creates an db based ui object for this repository - """ - from kallithea.lib.utils import make_ui - return make_ui() - @classmethod def is_valid(cls, repo_name): """ @@ -1324,7 +1316,8 @@ def scm_instance_no_cache(self): repo_full_path = self.repo_full_path log.debug('Creating instance of repository at %s', repo_full_path) - self._scm_instance = get_repo(repo_full_path, baseui=self._ui) + from kallithea.lib.utils import make_ui + self._scm_instance = get_repo(repo_full_path, baseui=make_ui()) return self._scm_instance def __json__(self):