#NEWLINE# def allowed( self , request , instance ) : #NEWLINE# #INDENT# return ( ( ( request . status in project_tables . ACTIVE_STATES ) or ( instance . status == 'SHUTOFF' ) ) and ( not project_tables . is_deleting ( instance ) ) )