web/request.py
branchstable
changeset 2255 c346af0727ca
parent 2245 7463e1a748dd
child 2258 79bc598c6411
equal deleted inserted replaced
2254:f632b06058c4 2255:c346af0727ca
    59 
    59 
    60 
    60 
    61 
    61 
    62 class CubicWebRequestBase(DBAPIRequest):
    62 class CubicWebRequestBase(DBAPIRequest):
    63     """abstract HTTP request, should be extended according to the HTTP backend"""
    63     """abstract HTTP request, should be extended according to the HTTP backend"""
       
    64     json_request = False # to be set to True by json controllers
    64 
    65 
    65     def __init__(self, vreg, https, form=None):
    66     def __init__(self, vreg, https, form=None):
    66         super(CubicWebRequestBase, self).__init__(vreg)
    67         super(CubicWebRequestBase, self).__init__(vreg)
    67         self.message = None
    68         self.message = None
    68         self.authmode = vreg.config['auth-mode']
    69         self.authmode = vreg.config['auth-mode']