Mercurial > public > src > rhodecode
comparison pylons_app/lib/simplehg.py @ 185:3380ca40cdba
added version generation to pylons_app and showed it into template. Propagated baseController with some data for acces into each controller. Fixed simplehg middleware to get proper name of application
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 22 May 2010 00:51:49 +0200 |
parents | 24dbf4bc57aa |
children | 3d1dd13887f9 |
comparison
equal
deleted
inserted
replaced
184:2fc206a32ef0 | 185:3380ca40cdba |
---|---|
25 | 25 |
26 def __init__(self, application, config): | 26 def __init__(self, application, config): |
27 self.application = application | 27 self.application = application |
28 self.config = config | 28 self.config = config |
29 #authenticate this mercurial request using | 29 #authenticate this mercurial request using |
30 realm = '%s %s' % (config['repos_name'], 'mercurial repository') | 30 realm = '%s %s' % (config['hg_app_name'], 'mercurial repository') |
31 self.authenticate = AuthBasicAuthenticator(realm, authfunc) | 31 self.authenticate = AuthBasicAuthenticator(realm, authfunc) |
32 | 32 |
33 def __call__(self, environ, start_response): | 33 def __call__(self, environ, start_response): |
34 if not is_mercurial(environ): | 34 if not is_mercurial(environ): |
35 return self.application(environ, start_response) | 35 return self.application(environ, start_response) |