Mercurial > kallithea
comparison rhodecode/model/scm.py @ 1193:523382549c45 beta
Added repo group page showing what reposiories are inside a group
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 01 Apr 2011 18:46:24 +0200 |
parents | 4de3fa6290a7 |
children | 6832ef664673 |
comparison
equal
deleted
inserted
replaced
1192:01fe71db71f6 | 1193:523382549c45 |
---|---|
123 | 123 |
124 :param all_repos: give specific repositories list, good for filtering | 124 :param all_repos: give specific repositories list, good for filtering |
125 this have to be a list of just the repository names | 125 this have to be a list of just the repository names |
126 """ | 126 """ |
127 if all_repos is None: | 127 if all_repos is None: |
128 all_repos = [r.repo_name for r in self.sa.query(Repository)\ | 128 repos = self.sa.query(Repository)\ |
129 .order_by(Repository.repo_name).all()] | 129 .order_by(Repository.repo_name).all() |
130 all_repos = [r.repo_name for r in repos] | |
130 | 131 |
131 #get the repositories that should be invalidated | 132 #get the repositories that should be invalidated |
132 invalidation_list = [str(x.cache_key) for x in \ | 133 invalidation_list = [str(x.cache_key) for x in \ |
133 self.sa.query(CacheInvalidation.cache_key)\ | 134 self.sa.query(CacheInvalidation.cache_key)\ |
134 .filter(CacheInvalidation.cache_active == False)\ | 135 .filter(CacheInvalidation.cache_active == False)\ |