def __init__(self, req): self.req = req self.res = Response() self.res.content_type = str(req.accept) self.res.server = 'ocni-server/1.1 (linux) OCNI/1.1' self.req_adapter = RequestAdapter() self.res_adapter = ResponseAdapter() self.jungler = CategoryJungler()
def __init__(self, req, location, idontknow=None, idontcare=None): self.req = req self.location = location self.idontknow = idontknow self.idontcare = idontcare self.path_url = self.req.path_url self.triggered_action = None self.res = Response() self.res.content_type = str(req.accept) self.res.server = 'ocni-server/1.1 (linux) OCNI/1.1' self.req_adapter = RequestAdapter() self.res_adapter = ResponseAdapter() self.jungler = SingleEntityJungler()