#NEWLINE# def inherit_restriction( self ) : #NEWLINE# #INDENT# parent_object = self . get_parent_object ( ) #NEWLINE# if ( ( parent_object is not None ) and isinstance ( parent_object , Restricted ) ) : #NEWLINE# #INDENT# self . restriction_id = parent_object . restriction_id #NEWLINE# self . restriction_content_type_id = self . restriction_content_type_id