def importConfiguration(configurator, str): strio = StringIO.StringIO() strio.write(str) strio.seek(0) xml = StackOpssubs.parse(strio) return configurator.importConfiguration(xml)
def importNode(self,xml): node = StackOpssubs.parse(xml) return node