예제 #1
0
파일: base.py 프로젝트: jbenito3/indico
 def __init__(self, params):
     RequestHandlerBase.__init__(self)
     self._reqParams = self._params = params
     self._requestStarted = False
     # Fill in the aw instance with the current information
     self._aw = AccessWrapper()
     self._aw.setIP(request.remote_addr)
     self._aw.setUser(session.user)
     self._target = None
     self._startTime = None
     self._tohttps = request.is_secure
     self._endTime = None
     self._doProcess = True  #Flag which indicates whether the RH process
                             #   must be carried out; this is useful for
                             #   the checkProtection methods
     self._tempFilesToDelete = []
     self._redisPipeline = None
예제 #2
0
 def __init__(self, params):
     RequestHandlerBase.__init__(self)
     if not self.UNICODE_PARAMS:
         params = unicode_struct_to_utf8(params)
     self._reqParams = self._params = params
     self._requestStarted = False
     # Fill in the aw instance with the current information
     self._aw = AccessWrapper()
     self._aw.setIP(request.remote_addr)
     self._aw.setUser(session.user)
     self._target = None
     self._startTime = None
     self._tohttps = request.is_secure
     self._endTime = None
     self._doProcess = True  #Flag which indicates whether the RH process
     #   must be carried out; this is useful for
     #   the checkProtection methods
     self._tempFilesToDelete = []
     self._redisPipeline = None
예제 #3
0
파일: base.py 프로젝트: bubbas/indico
 def __init__(self, params, session, req):
     """
     Constructor.  Initializes provate variables
     @param req: HTTP Request provided by the previous layer
     """
     RequestHandlerBase.__init__(self, req)
     self._reqParams = self._params = params
     self._requestStarted = False
     self._websession = session
     # Fill in the aw instance with the current information
     self._aw = AccessWrapper()
     self._aw.setIP(self.getHostIP())
     self._aw.setSession(session)
     self._aw.setUser(session.getUser())
     self._target = None
     self._startTime = None
     self._tohttps = self._req.is_https()
     self._endTime = None
     self._doProcess = True  #Flag which indicates whether the RH process
                             #   must be carried out; this is useful for
                             #   the checkProtection methods
     self._tempFilesToDelete = []
예제 #4
0
 def __init__(self, params, session, req):
     """
     Constructor.  Initializes provate variables
     @param req: HTTP Request provided by the previous layer
     """
     RequestHandlerBase.__init__(self, req)
     self._reqParams = self._params = params
     self._requestStarted = False
     self._websession = session
     # Fill in the aw instance with the current information
     self._aw = AccessWrapper()
     self._aw.setIP(self.getHostIP())
     self._aw.setSession(session)
     self._aw.setUser(session.getUser())
     self._target = None
     self._startTime = None
     self._tohttps = self._req.is_https()
     self._endTime = None
     self._doProcess = True  #Flag which indicates whether the RH process
     #   must be carried out; this is useful for
     #   the checkProtection methods
     self._tempFilesToDelete = []