Guest User

Untitled

a guest
Oct 31st, 2011
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. if evt.firstTime == evt.lastTime and hasattr(evt, 'compClass'):
  2. for comp in device.getMonitoredComponents(type=evt.compClass):
  3. if comp.id != evt.component: continue
  4. comp.status = int(evt.compStatus)
  5. from transaction import commit
  6. commit()
  7. break
  8.  
Advertisement
Add Comment
Please, Sign In to add comment