def removeFromIDNameParent(self): "Remove this from the id and name dictionaries and the children of the parent." self.removeChildrenFromIDNameParent() if 'id' in self.attributeDictionary: idDictionary = self.getRoot().idDictionary idKey = self.getImportNameWithDot() + self.attributeDictionary['id'] if idKey in idDictionary: del idDictionary[idKey] if 'name' in self.attributeDictionary: nameDictionary = self.getRoot().nameDictionary nameKey = self.getImportNameWithDot() + self.attributeDictionary['name'] euclidean.removeElementFromListTable(self, nameKey, nameDictionary) if self.parent != None: self.parent.children.remove(self)
def removeFromIDNameParent(self): 'Remove this from the id and name dictionaries and the childNodes of the parentNode.' self.removeChildNodesFromIDNameParent() idKey = self.getStrippedAttributesValue('id') if idKey != None: idDictionary = self.getOwnerDocument().idDictionary idKey = self.getImportNameChain() + idKey if idKey in idDictionary: del idDictionary[idKey] nameKey = self.getStrippedAttributesValue('name') if nameKey != None: euclidean.removeElementFromListTable(self, self.getImportNameChain() + nameKey, self.getOwnerDocument().nameDictionary) for tagKey in self.getTagKeys(): euclidean.removeElementFromListTable(self, tagKey, self.getOwnerDocument().tagDictionary) if self.parentNode != None: self.parentNode.childNodes.remove(self)
def removeFromIDNameParent(self): 'Remove this from the id and name dictionaries and the childNodes of the parentNode.' self.removeChildNodesFromIDNameParent() if 'id' in self.attributeDictionary: idDictionary = self.getRoot().idDictionary idKey = self.getImportNameWithDot() + self.attributeDictionary['id'] if idKey in idDictionary: del idDictionary[idKey] if 'name' in self.attributeDictionary: nameDictionary = self.getRoot().nameDictionary nameKey = self.getImportNameWithDot() + self.attributeDictionary['name'] euclidean.removeElementFromListTable(self, nameKey, nameDictionary) for tagKey in self.getTagKeys(): euclidean.removeElementFromListTable(self, tagKey, self.getRoot().tagDictionary) if self.parentNode != None: self.parentNode.childNodes.remove(self)
def removeFromIDNameParent(self): 'Remove this from the id and name dictionaries and the childNodes of the parentNode.' self.removeChildNodesFromIDNameParent() idKey = self.getStrippedAttributesValue('id') if idKey is not None: idDictionary = self.getOwnerDocument().idDictionary idKey = self.getImportNameChain() + idKey if idKey in idDictionary: del idDictionary[idKey] nameKey = self.getStrippedAttributesValue('name') if nameKey is not None: euclidean.removeElementFromListTable( self, self.getImportNameChain() + nameKey, self.getOwnerDocument().nameDictionary) for tagKey in self.getTagKeys(): euclidean.removeElementFromListTable( self, tagKey, self.getOwnerDocument().tagDictionary) if self.parentNode is not None: self.parentNode.childNodes.remove(self)