Mercurial > kallithea
comparison rhodecode/model/scm.py @ 1343:a04fe5986109 beta
#47 implemented basic gui for browsing repo groups
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 23 May 2011 00:00:03 +0200 |
parents | 70a5a9a57864 |
children | 9c0f5d558789 |
comparison
equal
deleted
inserted
replaced
1342:9dacacc5b7c2 | 1343:a04fe5986109 |
---|---|
117 continue | 117 continue |
118 | 118 |
119 return repos_list | 119 return repos_list |
120 | 120 |
121 def get_repos(self, all_repos=None): | 121 def get_repos(self, all_repos=None): |
122 """Get all repos from db and for each repo create it's | 122 """ |
123 Get all repos from db and for each repo create it's | |
123 backend instance and fill that backed with information from database | 124 backend instance and fill that backed with information from database |
124 | 125 |
125 :param all_repos: give specific repositories list, good for filtering | 126 :param all_repos: list of repository names as strings |
126 this have to be a list of just the repository names | 127 give specific repositories list, good for filtering |
127 """ | 128 """ |
128 if all_repos is None: | 129 if all_repos is None: |
129 repos = self.sa.query(Repository)\ | 130 repos = self.sa.query(Repository)\ |
131 .filter(Repository.group_id == None)\ | |
130 .order_by(Repository.repo_name).all() | 132 .order_by(Repository.repo_name).all() |
131 all_repos = [r.repo_name for r in repos] | 133 all_repos = [r.repo_name for r in repos] |
132 | 134 |
133 #get the repositories that should be invalidated | 135 #get the repositories that should be invalidated |
134 invalidation_list = [str(x.cache_key) for x in \ | 136 invalidation_list = [str(x.cache_key) for x in \ |