Re: [libvirt] [PATCH] Domain Events Python Bindings

2008-10-29 Thread Ben Guthro
Daniel Veillard wrote on 10/29/2008 01:09 PM: >> +/* Call the Callback Dispatcher */ >> +pyobj_ret = PyObject_CallMethod(pyobj_conn_inst, >> +(char*)"dispatchDomainEventCallbacks", >> +(char*)"Oi", >> +

Re: [libvirt] [PATCH] Domain Events Python Bindings

2008-10-29 Thread Ben Guthro
Comments inline below Daniel Veillard wrote on 10/29/2008 01:09 PM: ... >> +def myDomainEventCallback1 (conn, dom, event, opaque): >> +print "myDomainEventCallback1 EVENT: Domain %s(%s) %s" % (dom.name(), >> dom.ID(), eventToString(event)) >> + >> +def myDomainEventCallback2 (conn, dom, event

Re: [libvirt] [PATCH] Domain Events Python Bindings

2008-10-29 Thread Daniel Veillard
On Wed, Oct 29, 2008 at 12:03:26PM -0400, Ben Guthro wrote: > Attached are the python bindings for domain events > > I have moved much of the complicated code from my prior submission out of C > and into python. Thanks :-) > This required a slight change to the generator. > The new convention

[libvirt] [PATCH] Domain Events Python Bindings

2008-10-29 Thread Ben Guthro
Attached are the python bindings for domain events I have moved much of the complicated code from my prior submission out of C and into python. This required a slight change to the generator. The new convention that we came up with is to append .py to the class as it is being generated, iff tha