#NEWLINE# def dispatch( self , request , * args , **kwargs ) : #NEWLINE# #INDENT# self . transformation = get_object_or_404 ( Transformation , pk = self . kwargs [ 'pk' ] ) #NEWLINE# try : #NEWLINE# #INDENT# Permission . check_permissions ( request . user , ( permission_transformation_edit , ) ) #NEWLINE# #UNINDENT# except PermissionDenied : #NEWLINE# #INDENT# AccessControlList . objects . check_access ( permission_transformation_edit , self . user , self . transformation . content_object ) #NEWLINE# #UNINDENT# return super ( TransformationEditView , self ) . dispatch ( request , * args , ** kwargs )