#NEWLINE# def is_permission_allowed( self , perm ) : #NEWLINE# #INDENT# add_permission = self . get_full_permission_string ( 'add' ) #NEWLINE# change_permission = self . get_full_permission_string ( 'change' ) #NEWLINE# delete_permission = self . get_full_permission_string ( 'delete' ) #NEWLINE# if self . any_permission : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# if ( self . add_permission and ( perm == add_permission ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# if ( self . change_permission and ( perm == change_permission ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# if ( self . delete_permission and ( perm == delete_permission ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# return False