Beispiel #1
0
 
 def __init__(self, xml_element, trace_dict, ruleset):
     ''' Initialize '''
     self.trace_id = (0, 'on_error') 
     self.description = None
     self.ruleset = ruleset
     
     # Initialize values
     init_rule_values(self, GEHD_HANDLER_ALERT)
     # Read the xml
     self._read_from_xml(xml_element, trace_dict)
Beispiel #2
0
 def __init__(self, type, xml_element, trace_dict, ruleset):
     ''' Constructor ''' 
     self.ev_type = type
     self.trace_id = (0, type) 
     self.description = None
     self.ruleset = ruleset
     
     # Initialize values
     init_rule_values(self, GACT_VALUES[self.ev_type])
     # Read the xml
     self._read_from_xml(xml_element, trace_dict)
     return