Esempio n. 1
0
 def addXML(self, depth, output):
     'Add xml for this object.'
     attributeCopy = {}
     if self.xmlElement != None:
         attributeCopy = evaluate.getEvaluatedDictionaryByCopyKeys(['paths', 'target', 'vertexes'], self.xmlElement)
     euclidean.removeElementsFromDictionary(attributeCopy, matrix.getKeysM())
     euclidean.removeTrueFromDictionary(attributeCopy, 'visible')
     innerOutput = StringIO.StringIO()
     self.addXMLInnerSection(depth + 1, innerOutput)
     self.addXMLArchivableObjects(depth + 1, innerOutput)
     xml_simple_writer.addBeginEndInnerXMLTag(attributeCopy, depth, innerOutput.getvalue(), self.getXMLLocalName(), output)
Esempio n. 2
0
	def addXML(self, depth, output):
		'Add xml for this object.'
		attributeCopy = {}
		if self.xmlElement != None:
			attributeCopy = evaluate.getEvaluatedDictionaryByCopyKeys(['paths', 'target', 'vertexes'], self.xmlElement)
		euclidean.removeElementsFromDictionary(attributeCopy, matrix.getKeysM())
		euclidean.removeTrueFromDictionary(attributeCopy, 'visible')
		innerOutput = cStringIO.StringIO()
		self.addXMLInnerSection(depth + 1, innerOutput)
		self.addXMLArchivableObjects(depth + 1, innerOutput)
		xml_simple_writer.addBeginEndInnerXMLTag(attributeCopy, self.getXMLClassName(), depth, innerOutput.getvalue(), output)