comparison pylons_app/controllers/hg.py @ 22:3142616771cd

Removed default contact name changed depracated import of helpers, added manage repo funciton draft. Template updates removed colored logger
author Marcin Kuzminski
date Sun, 28 Feb 2010 14:19:21 +0100
parents fac1f62a1d71
children 2963f2894a7a
comparison
equal deleted inserted replaced
21:fac1f62a1d71 22:3142616771cd
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # -*- coding: utf-8 -*- 2 # -*- coding: utf-8 -*-
3 import logging 3 import logging
4 from pylons_app.lib.base import BaseController, render 4 from pylons_app.lib.base import BaseController, render
5 from pylons import c, g, session, h, request 5 from pylons import c, g, session, request
6 from pylons_app.lib import helpers as h
6 from mako.template import Template 7 from mako.template import Template
7 from pprint import pprint 8 from pprint import pprint
8 import os 9 import os
9 from mercurial import ui, hg 10 from mercurial import ui, hg
10 from mercurial.error import RepoError 11 from mercurial.error import RepoError
28 template = Template("".join(response), 29 template = Template("".join(response),
29 lookup = request.environ['pylons.pylons']\ 30 lookup = request.environ['pylons.pylons']\
30 .config['pylons.g'].mako_lookup) 31 .config['pylons.g'].mako_lookup)
31 32
32 return template.render(g = g, c = c, session = session, h = h) 33 return template.render(g = g, c = c, session = session, h = h)
34
35
36 def manage_hgrc(self):
37 pass
33 38
34 def add_repo(self, new_repo): 39 def add_repo(self, new_repo):
35 c.staticurl = g.statics 40 c.staticurl = g.statics
36 41
37 #extra check it can be add since it's the command 42 #extra check it can be add since it's the command