Beispiel #1
0
 def _parse_component(element, entry):
     new_component = Component(entry)
     for k, v in element.attrib.items():
         new_component.__setattr__(k, v)
     entry.add_component(new_component)
Beispiel #2
0
 def _parse_component(element, entry):
     new_component = Component(entry)
     for k, v in element.attrib.items():
         new_component.__setattr__(k, v)
     entry.add_component(new_component)