Ejemplo n.º 1
0
 def process(self):
     """Hand in all document elements to Evita for processing. Document
     elements are instances of Tag with name=docelement. This is a simple
     approach that assumes that all document elements are processed the same
     way."""
     for element in self.document.elements():
         Evita(self.document, element).process_element()
Ejemplo n.º 2
0
 def process(self):
     """Hand in all document elements to Evita for processing. Document
     elements are instances of Tag with name=docelement."""
     imported_events = self._import_events()
     for element in self.document.elements():
         Evita(self.document, element, imported_events).process_element()
     if self.document.options.import_events and EVALUATE_EVENT_IMPORT:
         self._evaluate_results(imported_events)
Ejemplo n.º 3
0
 def __init__(self, tag, xmldoc, tarsqi_instance):
     """Calls __init__ of the base class and sets component_name,
     parser, CREATION_EXTENSION and RETRIEVAL_EXTENSION."""
     ComponentWrapper.__init__(self, tag, xmldoc, tarsqi_instance)
     self.component_name = EVITA
     self.parser = Evita()
     self.CREATION_EXTENSION = 'evi.i'
     self.RETRIEVAL_EXTENSION = 'evi.o'