#NEWLINE# def DeclareLocks( self , level ) : #NEWLINE# #INDENT# if ( level == locking . LEVEL_NODE_RES ) : #NEWLINE# #INDENT# self . _LockInstancesNodes ( primary_only = True , level = locking . LEVEL_NODE_RES )