'Get current request object.'

def _get_request(self):

    req = self.request_stack.top
    if (req is None):
        if (self._default_request is None):
            self._default_request = Context()
        return self._default_request
    return req
