comparison pylons_app/model/hg_model.py @ 477:fdebc5f67dc6 celery

Some gui fixes
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 14 Sep 2010 17:34:15 +0200
parents 6b934c9607e7
children 7afbc45aab28
comparison
equal deleted inserted replaced
476:8ba65e4c4e4c 477:fdebc5f67dc6
59 return HgModel.repo_scan(g.paths[0][0], g.paths[0][1], g.baseui) 59 return HgModel.repo_scan(g.paths[0][0], g.paths[0][1], g.baseui)
60 60
61 @cache_region('super_short_term', 'cached_repos_switcher_list') 61 @cache_region('super_short_term', 'cached_repos_switcher_list')
62 def _get_repos_switcher_cached(cached_repo_list): 62 def _get_repos_switcher_cached(cached_repo_list):
63 repos_lst = [] 63 repos_lst = []
64 for repo in sorted(x.name.lower() for x in cached_repo_list.values()): 64 for repo in sorted(x for x in cached_repo_list.values()):
65 if HasRepoPermissionAny('repository.write', 'repository.read', 'repository.admin')(repo, 'main page check'): 65 if HasRepoPermissionAny('repository.write', 'repository.read', 'repository.admin')(repo.name.lower(), 'main page check'):
66 repos_lst.append(repo) 66 repos_lst.append((repo.name.lower(), repo.dbrepo.private,))
67 67
68 return repos_lst 68 return repos_lst
69 69
70 @cache_region('long_term', 'full_changelog') 70 @cache_region('long_term', 'full_changelog')
71 def _full_changelog_cached(repo_name): 71 def _full_changelog_cached(repo_name):