# HG changeset patch # User Mads Kiilerich # Date 1619004852 -7200 # Node ID a349211f875ea9450431904badebaf41b73df8de # Parent 462064bd9489579adc24a3a2d293591dbbee71ae db: inline Repository._ui diff -r 462064bd9489 -r a349211f875e kallithea/model/db.py --- 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):