diff pylons_app/lib/middleware/simplehg.py @ 381:55377fdc1fc6

cleared global application settings. Made it much more extensible by keeping it key/value in the database.
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 01 Aug 2010 18:36:00 +0200
parents 664a5b8c551a
children eda5f01de3c4
line wrap: on
line diff
--- a/pylons_app/lib/middleware/simplehg.py	Sun Aug 01 17:08:58 2010 +0200
+++ b/pylons_app/lib/middleware/simplehg.py	Sun Aug 01 18:36:00 2010 +0200
@@ -63,7 +63,7 @@
         #===================================================================
         username = REMOTE_USER(environ)
         if not username:
-            self.authenticate.realm = self.config['hg_app_auth_realm']
+            self.authenticate.realm = self.config['hg_app_realm']
             result = self.authenticate(environ)
             if isinstance(result, str):
                 AUTH_TYPE.update(environ, 'basic')