Example #1
0
 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)
Example #2
0
 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})
Example #3
0
 def construct(self):
     root = xmlutil.TemplateElement('backupjobruns')
     elem = xmlutil.SubTemplateElement(root,
                                       'backupjobrun',
                                       selector='backupjobruns')
     make_backupjobrun(elem)
     return xmlutil.MasterTemplate(root, 1)
Example #4
0
 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)
Example #5
0
 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})