def construct(self): root = xmlutil.TemplateElement('extensions') elem = xmlutil.SubTemplateElement(root, 'extension', selector='extensions') make_ext(elem) return xmlutil.MasterTemplate(root, 1, nsmap=ext_nsmap)
def construct(self): root = xmlutil.TemplateElement('backupjobs') elem = xmlutil.SubTemplateElement(root, 'backupjob', selector='backupjobs') make_backupjob(elem) alias = BackupJobs.alias namespace = BackupJobs.namespace return xmlutil.MasterTemplate(root, 1, nsmap={alias: namespace})
def construct(self): root = xmlutil.TemplateElement('backupjobruns') elem = xmlutil.SubTemplateElement(root, 'backupjobrun', selector='backupjobruns') make_backupjobrun(elem) return xmlutil.MasterTemplate(root, 1)
def construct(self): root = xmlutil.TemplateElement('versions') elem = xmlutil.SubTemplateElement(root, 'version', selector='versions') make_version(elem) return xmlutil.MasterTemplate(root, 1, nsmap=version_nsmap)
def construct(self): root = xmlutil.TemplateElement('restore', selector='restore') make_backupjobrun_restore(root) alias = BackupJobRuns.alias namespace = BackupJobRuns.namespace return xmlutil.MasterTemplate(root, 1, nsmap={alias: namespace})