Show More
@@ -2,7 +2,7 | |||
|
2 | 2 | Hg app, a web based mercurial repository managment based on pylons |
|
3 | 3 | """ |
|
4 | 4 | |
|
5 |
VERSION = (0, 7, |
|
|
5 | VERSION = (0, 7, 6, 'beta') | |
|
6 | 6 | |
|
7 | 7 | __version__ = '.'.join((str(each) for each in VERSION[:4])) |
|
8 | 8 |
@@ -5,9 +5,11 from pylons_app.lib.auth import LoginReq | |||
|
5 | 5 | from pylons_app.lib.base import BaseController, render |
|
6 | 6 | from pylons_app.lib.filters import clean_repo |
|
7 | 7 | from pylons_app.lib.utils import check_repo, invalidate_cache |
|
8 | from pylons_app.model.hg_model import HgModel | |
|
8 | 9 | import logging |
|
9 | 10 | import os |
|
10 | 11 | import shutil |
|
12 | from operator import itemgetter | |
|
11 | 13 | log = logging.getLogger(__name__) |
|
12 | 14 | |
|
13 | 15 | class ReposController(BaseController): |
@@ -24,7 +26,8 class ReposController(BaseController): | |||
|
24 | 26 | def index(self, format='html'): |
|
25 | 27 | """GET /repos: All items in the collection""" |
|
26 | 28 | # url('repos') |
|
27 | c.repos_list = c.cached_repo_list | |
|
29 | cached_repo_list = HgModel().get_repos() | |
|
30 | c.repos_list = sorted(cached_repo_list, key=itemgetter('name')) | |
|
28 | 31 | return render('admin/repos/repos.html') |
|
29 | 32 | |
|
30 | 33 | def create(self): |
General Comments 0
You need to be logged in to leave comments.
Login now