def encode(self, node, errs): assert self.tag != "" for key in self.iterkeys(): newnode = xmlext.addNode(node, self.tag) xmlext.setNodeAttribute(newnode, "xml:lang", key) xmlext.addText(newnode, "", self[key])
def encode(self, node, errs): assert self.tag != '' for key in self.iterkeys(): newnode = xmlext.addNode(node, self.tag) xmlext.setNodeAttribute(newnode, 'xml:lang', key) xmlext.addText(newnode, '', self[key])
def writetext(node, attr, text): # print 'write attr', attr, text xmlext.setNodeAttribute(node, attr, text)
def writetext(node, attr, text): #print 'write attr', attr, text xmlext.setNodeAttribute(node, attr, text)