@classmethod
def adapter_view(cls, adapter):

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

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