diff -r 798200432f50 -r 4a3b264589dc web/request.py --- 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: