def construct(self): root = xmlutil.TemplateElement('servicemanage', selector='servicemanage') make_servicemanage(root) alias = ServiceManage_host_attribute.alias namespace = ServiceManage_host_attribute.namespace return xmlutil.SlaveTemplate(root, 1, nsmap={alias: namespace})
def construct(self): root = xmlutil.TemplateElement('snapshots') elem = xmlutil.SubTemplateElement(root, 'snapshot', selector='snapshots') make_snapshot(elem) alias = Extended_snapshot_attributes.alias namespace = Extended_snapshot_attributes.namespace return xmlutil.SlaveTemplate(root, 1, nsmap={alias: namespace})