def sendParent(self): """ send parent to plugin (if parent couldn't send child because of a missing covise key)""" if not self.covise_key=='No key': if self.parentCoviseKeyToSend != 'No key': msg = coGRObjAddChildMsg( self.parentCoviseKeyToSend, self.covise_key, 0) covise.sendRendMsg(msg.c_str()) self.parentCoviseKeyToSend = 'No key'
def sendParent(self): """ send parent to plugin (if parent couldn't send child because of a missing covise key)""" if not self.covise_key == 'No key': if self.parentCoviseKeyToSend != 'No key': msg = coGRObjAddChildMsg(self.parentCoviseKeyToSend, self.covise_key, 0) covise.sendRendMsg(msg.c_str()) self.parentCoviseKeyToSend = 'No key'
def sendChildren(self): """ send list of children to plugin """ if not self.covise_key=='No key': for childKey in self.params.children: covise_key_child = Neg2Gui.theNegMsgHandler().internalRequestObjectCoviseKey(childKey) if covise_key_child == 'No key': child = globalKeyHandler().getObject(childKey) if child: child.parentCoviseKeyToSend = self.covise_key else: msg = coGRObjAddChildMsg( self.covise_key, covise_key_child, 0) covise.sendRendMsg(msg.c_str())
def sendChildren(self): """ send list of children to plugin """ if not self.covise_key == 'No key': for childKey in self.params.children: covise_key_child = Neg2Gui.theNegMsgHandler( ).internalRequestObjectCoviseKey(childKey) if covise_key_child == 'No key': child = globalKeyHandler().getObject(childKey) if child: child.parentCoviseKeyToSend = self.covise_key else: msg = coGRObjAddChildMsg(self.covise_key, covise_key_child, 0) covise.sendRendMsg(msg.c_str())