def addXML(self, depth, output): 'Add xml for this object.' attributes = self.getAttributes() if len(attributes) > 0: xml_simple_writer.addClosedXMLTag(attributes, depth, self.__class__.__name__.lower(), output)
def addXML(self, depth, output): "Add xml for this object." attributeDictionary = self.getAttributeDictionary() if len(attributeDictionary) > 0: xml_simple_writer.addClosedXMLTag(attributeDictionary, self.__class__.__name__.lower(), depth, output)
def addXML( self, depth, output ): "Add xml for this object." attributeDictionaryCopy = {} if self.xmlElement != None: attributeDictionaryCopy = evaluate.getEvaluatedDictionary( [], self.xmlElement ) euclidean.removeListFromDictionary( attributeDictionaryCopy, matrix4x4.getMatrixKeys() ) euclidean.removeTrueFromDictionary( attributeDictionaryCopy, 'visible' ) innerOutput = cStringIO.StringIO() self.addXMLInnerSection( depth + 1, innerOutput ) self.addXMLArchivableObjects( depth + 1, innerOutput ) if len( innerOutput.getvalue() ) > 0: xml_simple_writer.addBeginXMLTag( attributeDictionaryCopy, depth, self.getXMLClassName(), output ) output.write( innerOutput.getvalue() ) xml_simple_writer.addEndXMLTag( depth, self.getXMLClassName(), output ) else: xml_simple_writer.addClosedXMLTag( attributeDictionaryCopy, depth, self.getXMLClassName(), output )
def addXML( self, depth, output ): "Add xml for this object." attributeDictionary = self.getAttributeDictionary() if len( attributeDictionary ) > 0: xml_simple_writer.addClosedXMLTag( attributeDictionary, depth, self.__class__.__name__.lower(), output )
def addXML(self, depth, output): "Add the xml for this object." attributes = {} self.addToAttributes(attributes) xml_simple_writer.addClosedXMLTag(attributes, depth, 'face', output)
def addXML( self, depth, output ): "Add the xml for this object." attributeDictionary = {} self.addToAttributeDictionary( attributeDictionary ) xml_simple_writer.addClosedXMLTag( attributeDictionary, 'face', depth, output )
def addXML(self, depth, output): "Add the xml for this object." attributeDictionary = {} self.addToAttributeDictionary(attributeDictionary) xml_simple_writer.addClosedXMLTag(attributeDictionary, 'face', depth, output)
def addXML(self, depth, output): "Add the xml for this object." attributes = {} self.addToAttributes(attributes) xml_simple_writer.addClosedXMLTag( attributes, depth, 'face', output )