Changeset - eef7a1b953e8
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 14 years ago 2011-05-23 00:18:32
marcin@python-works.com
Admin view will see repos_groups in main list
1 file changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/controllers/admin/repos.py
Show inline comments
 
@@ -146,13 +146,16 @@ class ReposController(BaseController):
 
        return defaults
 

	
 
    @HasPermissionAllDecorator('hg.admin')
 
    def index(self, format='html'):
 
        """GET /repos: All items in the collection"""
 
        # url('repos')
 
        cached_repo_list = ScmModel().get_repos()
 

	
 
        all_repos = [r.repo_name for r in Repository.query().all()]
 

	
 
        cached_repo_list = ScmModel().get_repos(all_repos)
 
        c.repos_list = sorted(cached_repo_list, key=itemgetter('name_sort'))
 
        return render('admin/repos/repos.html')
 

	
 
    @HasPermissionAnyDecorator('hg.admin', 'hg.create.repository')
 
    def create(self):
 
        """
0 comments (0 inline, 0 general)