Show More
@@ -2,7 +2,7 | |||||
2 | Hg app, a web based mercurial repository managment based on pylons |
|
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 | __version__ = '.'.join((str(each) for each in VERSION[:4])) |
|
7 | __version__ = '.'.join((str(each) for each in VERSION[:4])) | |
8 |
|
8 |
@@ -5,9 +5,11 from pylons_app.lib.auth import LoginReq | |||||
5 | from pylons_app.lib.base import BaseController, render |
|
5 | from pylons_app.lib.base import BaseController, render | |
6 | from pylons_app.lib.filters import clean_repo |
|
6 | from pylons_app.lib.filters import clean_repo | |
7 | from pylons_app.lib.utils import check_repo, invalidate_cache |
|
7 | from pylons_app.lib.utils import check_repo, invalidate_cache | |
|
8 | from pylons_app.model.hg_model import HgModel | |||
8 | import logging |
|
9 | import logging | |
9 | import os |
|
10 | import os | |
10 | import shutil |
|
11 | import shutil | |
|
12 | from operator import itemgetter | |||
11 | log = logging.getLogger(__name__) |
|
13 | log = logging.getLogger(__name__) | |
12 |
|
14 | |||
13 | class ReposController(BaseController): |
|
15 | class ReposController(BaseController): | |
@@ -24,7 +26,8 class ReposController(BaseController): | |||||
24 | def index(self, format='html'): |
|
26 | def index(self, format='html'): | |
25 | """GET /repos: All items in the collection""" |
|
27 | """GET /repos: All items in the collection""" | |
26 | # url('repos') |
|
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 | return render('admin/repos/repos.html') |
|
31 | return render('admin/repos/repos.html') | |
29 |
|
32 | |||
30 | def create(self): |
|
33 | def create(self): |
@@ -18,7 +18,9 setup( | |||||
18 | "SQLAlchemy>=0.6", |
|
18 | "SQLAlchemy>=0.6", | |
19 | "Mako>=0.3.2", |
|
19 | "Mako>=0.3.2", | |
20 | "vcs>=0.1.2", |
|
20 | "vcs>=0.1.2", | |
21 | "pygments>=1.3.0" |
|
21 | "pygments>=1.3.0", | |
|
22 | "mercurial>=1.5", | |||
|
23 | "pysqlite" | |||
22 | ], |
|
24 | ], | |
23 | setup_requires=["PasteScript>=1.6.3"], |
|
25 | setup_requires=["PasteScript>=1.6.3"], | |
24 | packages=find_packages(exclude=['ez_setup']), |
|
26 | packages=find_packages(exclude=['ez_setup']), |
General Comments 0
You need to be logged in to leave comments.
Login now