def controller_view(controller, view):
    def as_view(request, *args, **kwargs):
        return getattr(controller(request, *args, **kwargs), view)(*args, **kwargs)
    return as_view

class Controller:
    def __init__(self, request, *args, **kwargs):
        self.request = request