def _Int(self, oNode, DATA): """ DATA is an xml node containing a string that represents an integer """ if DATA.text == None: return None else: return NativeToNative_Convertor._Int(self, oNode, DATA.text)
def _Int(self, oNode, DATA): DATA = NativeToNative_Convertor._Int(self, oNode, DATA) elem = Element(oNode.Name) elem.text = str(DATA) return elem
def _Bool(self, oNode, DATA): DATA = NativeToNative_Convertor._Int(self, oNode, DATA) elem = Element(oNode.Name) elem.text = "1" if DATA else "0" return elem