Exemplo n.º 1
0
	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)
Exemplo n.º 2
0
	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)
Exemplo n.º 3
0
	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)
Exemplo n.º 4
0
	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)
Exemplo n.º 5
0
 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)
Exemplo n.º 6
0
 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)