def initIsValid(self, node): return BaseXMLObject.initIsValid(self, node)
def initIsValid(self, node): if not node['attributes'].get('Name'): node['attributes']['Name']="0" #print "Warning: <%s> initialized with no name. Added one." % (node['tag'],) return BaseXMLObject.initIsValid(self, node)