Beispiel #1
0
 def ensure_template(self, template_name):
     pipeline_element = Ensurance(self.__xml_root).ensure_child('templates').ensure_child_with_attribute('pipeline', 'name', template_name).element
     return Pipeline(pipeline_element, 'templates')
Beispiel #2
0
 def templates(self):
     return [Pipeline(e, 'templates') for e in PossiblyMissingElement(self.__xml_root).possibly_missing_child('templates').findall('pipeline')]