#NEWLINE# def check_role( rr , actor ) : #NEWLINE# #INDENT# if ( not issubclass ( rr , UserRole ) ) : #NEWLINE# #INDENT# raise Exception ( '{0} (required on {1}) is not a UserRole' . format ( actor , actor ) )