#NEWLINE# def handle_no_permission( self , request ) : #NEWLINE# #INDENT# if ( self . raise_exception and ( not self . redirect_unauthenticated_users ) ) : #NEWLINE# #INDENT# if ( inspect . isclass ( self . raise_exception ) and issubclass ( self . raise_exception , Exception ) ) : #NEWLINE# #INDENT# raise self . raise_exception #NEWLINE# #UNINDENT# if callable ( self . raise_exception ) : #NEWLINE# #INDENT# ret = self . raise_exception ( request ) #NEWLINE# if isinstance ( ret , ( HttpResponse , StreamingHttpResponse ) ) : #NEWLINE# #INDENT# return ret #NEWLINE# #UNINDENT# #UNINDENT# raise PermissionDenied #NEWLINE# #UNINDENT# return self . no_permissions_fail ( request )