<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _view(self, request, extra_context=None):
 """ View wrapper taking care of houskeeping for painless form rendering. """

        if not self.has_permission(request.user):
            raise PermissionDenied

        return self.view(request, self.construct_context(request))