Ejemplo n.º 1
0
 def acknowledge_trane_event(self, device, instance, events, user_id):
     t = Trane_EventLog()
     result = t.acknowledge(device, instance, events, user_id)
     for r in result:
         d = r[1]
         if type(d) == types.DictType:
             if d.has_key('op'):
                 d['op'] = self._fix_op(d['op'])
     return result
Ejemplo n.º 2
0
 def read_trane_event_log(self, device, instance):
     t = Trane_EventLog()
     result = t.read(device, instance)     
     for r in result:
         if type(r) == types.DictType:
             if r.has_key('ack') and type(r['ack']) == types.DictType:
                 if r['ack'].has_key('op'):
                     r['ack']['op'] = self._fix_op(r['ack']['op'])
     return result