@classmethod<EOL><INDENT>def get_view(cls, method_name):<DEDENT>
method = getattr(cls, method_name)<EOL>@wraps(method)<EOL>def view(request, **kwargs):<EOL><INDENT>handler = cls(request, kwargs)<EOL>handler.call_processors('<STR_LIT>')<EOL>response = None<EOL>try:<EOL><INDENT>response = method(handler)<EOL>return response<EOL><DEDENT>finally:<EOL><INDENT>handler.call_processors('<STR_LIT>', response=response)<EOL><DEDENT><DEDENT>return view<EOL>
Get a Django function view calling the given method (and pre/post-processors)

:param method_name: The method on the class
:return: View function