1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-11-20 20:25:59 +03:00

Fix python bindings events code (David Lively)

This commit is contained in:
Daniel P. Berrange
2008-11-24 19:28:12 +00:00
parent cfb0dca6ec
commit c673689430
7 changed files with 202 additions and 49 deletions

View File

@@ -32,12 +32,12 @@
ret = libvirtmod.virConnectDomainEventRegister(self._o, self)
if ret == -1: raise libvirtError ('virConnectDomainEventRegister() failed', conn=self)
def dispatchDomainEventCallbacks(self, dom, event):
def dispatchDomainEventCallbacks(self, dom, event, detail):
"""Dispatches events to python user domain event callbacks
"""
try:
for cb,opaque in self.domainEventCallbacks.items():
cb(self,dom,event,opaque)
cb(self,dom,event,detail,opaque)
return 0
except AttributeError:
pass