Ejemplo n.º 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)
Ejemplo n.º 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)