web/request.py
changeset 6581 4a3b264589dc
parent 6564 ff9f7c566464
child 7070 5f8e52d722c5
--- a/web/request.py	Thu Oct 21 18:07:44 2010 +0200
+++ b/web/request.py	Thu Oct 21 18:38:36 2010 +0200
@@ -84,7 +84,6 @@
 
     def __init__(self, vreg, https, form=None):
         super(CubicWebRequestBase, self).__init__(vreg)
-        self.authmode = vreg.config['auth-mode']
         self.https = https
         if https:
             self.uiprops = vreg.config.https_uiprops
@@ -121,6 +120,10 @@
         self.html_headers.define_var('pageid', pid, override=False)
 
     @property
+    def authmode(self):
+        return self.vreg.config['auth-mode']
+
+    @property
     def varmaker(self):
         """the rql varmaker is exposed both as a property and as the
         set_varmaker function since we've two use cases: