##// END OF EJS Templates
db: inline Repository._ui
Mads Kiilerich -
r8672:a349211f default
parent child Browse files
Show More
@@ -1097,14 +1097,6 b' class Repository(meta.Base, BaseDbModel)'
1097 path_prefix = self.group.full_path_splitted if self.group else []
1097 path_prefix = self.group.full_path_splitted if self.group else []
1098 return kallithea.URL_SEP.join(path_prefix + [repo_name])
1098 return kallithea.URL_SEP.join(path_prefix + [repo_name])
1099
1099
1100 @property
1101 def _ui(self):
1102 """
1103 Creates an db based ui object for this repository
1104 """
1105 from kallithea.lib.utils import make_ui
1106 return make_ui()
1107
1108 @classmethod
1100 @classmethod
1109 def is_valid(cls, repo_name):
1101 def is_valid(cls, repo_name):
1110 """
1102 """
@@ -1324,7 +1316,8 b' class Repository(meta.Base, BaseDbModel)'
1324 def scm_instance_no_cache(self):
1316 def scm_instance_no_cache(self):
1325 repo_full_path = self.repo_full_path
1317 repo_full_path = self.repo_full_path
1326 log.debug('Creating instance of repository at %s', repo_full_path)
1318 log.debug('Creating instance of repository at %s', repo_full_path)
1327 self._scm_instance = get_repo(repo_full_path, baseui=self._ui)
1319 from kallithea.lib.utils import make_ui
1320 self._scm_instance = get_repo(repo_full_path, baseui=make_ui())
1328 return self._scm_instance
1321 return self._scm_instance
1329
1322
1330 def __json__(self):
1323 def __json__(self):
General Comments 0
You need to be logged in to leave comments. Login now