def view(request, *args, **kwargs):
    self = cls()
    self.request = request
    self.adapter = adapter()
    return self.dispatch(request, *args, **kwargs)
def view(request, *args, **kwargs):
    self = cls()
    self.request = request
    self.adapter = adapter()
    return self.dispatch(request, *args, **kwargs)