Mercurial > public > src > rhodecode
diff pylons_app/controllers/hg.py @ 12:5f30a6d558dc
Added pylons manage script
fix the configs for zip archives
some other minot changes.
author | Marcin Kuzminski |
---|---|
date | Sat, 20 Feb 2010 17:51:51 +0100 |
parents | 525ed90e4577 |
children | bbaab7501c1a |
line wrap: on
line diff
--- a/pylons_app/controllers/hg.py Sat Feb 20 14:37:29 2010 +0100 +++ b/pylons_app/controllers/hg.py Sat Feb 20 17:51:51 2010 +0100 @@ -20,7 +20,7 @@ return g.hgapp(request.environ, self.start_response) def add_repo(self, new_repo): - tmpl = ''' + tmpl = u''' <html> <body> %(msg)s%(new_repo)s!<br \> @@ -43,8 +43,8 @@ return [tmpl % ({'new_repo':new_repo, 'msg':'added repo: '})] def _check_repo(self, repo_name): - p = os.path.dirname(__file__) - config_path = os.path.join(p, '../..', 'hgwebdir.config') + p = os.path.dirname(os.path.dirname(os.path.dirname(__file__))) + config_path = os.path.join(p, 'hgwebdir.config') cp = ConfigParser()