- def __init__(self, api,
- event_ids = None,
- person_ids = None, node_ids = None,
- event_types = None,
- object_types = None, object_ids = None,
- fault_codes = None):
- self.api = api
-
- sql = "SELECT %s from view_events WHERE True" % \
- ", ".join(Event.fields)
-
- if event_ids:
- sql += " AND event_id IN (%s)" % ", ".join(map(str, event_ids))
-
- if person_ids:
- sql += " AND person_id IN (%s)" % ", ".join(map(str, person_ids))
-
- if node_ids:
- sql += " AND node_id IN (%s)" % ", ".join(map(str, node_ids))
+ def __init__(self, api, event_filter):
+ Table.__init__(self, api, Event)