diff 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
line wrap: on
line diff
--- a/pylons_app/lib/simplehg.py	Fri May 21 23:52:18 2010 +0200
+++ b/pylons_app/lib/simplehg.py	Sat May 22 00:51:49 2010 +0200
@@ -27,7 +27,7 @@
         self.application = application
         self.config = config
         #authenticate this mercurial request using 
-        realm = '%s %s' % (config['repos_name'], 'mercurial repository')
+        realm = '%s %s' % (config['hg_app_name'], 'mercurial repository')
         self.authenticate = AuthBasicAuthenticator(realm, authfunc)
         
     def __call__(self, environ, start_response):