Example #1
0
    def construct(self):
        root = xmlutil.TemplateElement('host')
        elem = xmlutil.make_flat_dict('resource', selector='host',
                                      subselector='resource')
        root.append(elem)

        return xmlutil.MasterTemplate(root, 1)
Example #2
0
    def construct(self):
        root = xmlutil.TemplateElement('host')
        elem = xmlutil.make_flat_dict('resource',
                                      selector='host',
                                      subselector='resource')
        root.append(elem)

        return xmlutil.MasterTemplate(root, 1)
Example #3
0
def make_voltype(elem):
    elem.set('id')
    elem.set('name')
    extra_specs = xmlutil.make_flat_dict('extra_specs', selector='extra_specs')
    elem.append(extra_specs)
Example #4
0
 def construct(self):
     root = xmlutil.make_flat_dict('extra_specs', selector='extra_specs')
     return xmlutil.MasterTemplate(root, 1)
Example #5
0
 def construct(self):
     root = xmlutil.make_flat_dict('extra_specs', selector='extra_specs')
     return xmlutil.MasterTemplate(root, 1)
Example #6
0
def make_voltype(elem):
    elem.set('id')
    elem.set('name')
    extra_specs = xmlutil.make_flat_dict('extra_specs', selector='extra_specs')
    elem.append(extra_specs)