Re: [libvirt] Help needed: simple python api to obtain events

2009-10-09 Thread Dan Kenigsberg
On Wed, Oct 07, 2009 at 12:59:39PM +0100, Daniel P. Berrange wrote: On Tue, Oct 06, 2009 at 07:04:29PM +0200, Dan Kenigsberg wrote: Would someone help me have a shrink-wrapped solution for obtaining libvirt events in python? I decided to re-write the demo program so that is shows a serious

Re: [libvirt] Help needed: simple python api to obtain events

2009-10-09 Thread Daniel P. Berrange
On Fri, Oct 09, 2009 at 10:19:08AM +0200, Dan Kenigsberg wrote: On Wed, Oct 07, 2009 at 12:59:39PM +0100, Daniel P. Berrange wrote: On Tue, Oct 06, 2009 at 07:04:29PM +0200, Dan Kenigsberg wrote: Would someone help me have a shrink-wrapped solution for obtaining libvirt events in python?

Re: [libvirt] Help needed: simple python api to obtain events

2009-10-09 Thread Florian VICHOT
def virEventUpdateTimerImpl(timerID, interval): global eventLopo Small typo here: eventLopo instead of eventLoop. Florian -- Libvir-list mailing list Libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] Help needed: simple python api to obtain events

2009-10-09 Thread Daniel P. Berrange
On Fri, Oct 09, 2009 at 10:19:08AM +0200, Dan Kenigsberg wrote: On Wed, Oct 07, 2009 at 12:59:39PM +0100, Daniel P. Berrange wrote: On Tue, Oct 06, 2009 at 07:04:29PM +0200, Dan Kenigsberg wrote: Would someone help me have a shrink-wrapped solution for obtaining libvirt events in python?

Re: [libvirt] Help needed: simple python api to obtain events

2009-10-09 Thread Daniel Veillard
On Fri, Oct 09, 2009 at 09:58:14AM +0100, Daniel P. Berrange wrote: On Fri, Oct 09, 2009 at 10:19:08AM +0200, Dan Kenigsberg wrote: On Wed, Oct 07, 2009 at 12:59:39PM +0100, Daniel P. Berrange wrote: On Tue, Oct 06, 2009 at 07:04:29PM +0200, Dan Kenigsberg wrote: Would someone help me

Re: [libvirt] Help needed: simple python api to obtain events

2009-10-09 Thread Dan Kenigsberg
On Fri, Oct 09, 2009 at 09:58:14AM +0100, Daniel P. Berrange wrote: On Fri, Oct 09, 2009 at 10:19:08AM +0200, Dan Kenigsberg wrote: On Wed, Oct 07, 2009 at 12:59:39PM +0100, Daniel P. Berrange wrote: On Tue, Oct 06, 2009 at 07:04:29PM +0200, Dan Kenigsberg wrote: Would someone help me

Re: [libvirt] Help needed: simple python api to obtain events

2009-10-09 Thread Daniel P. Berrange
On Fri, Oct 09, 2009 at 02:01:13PM +0200, Dan Kenigsberg wrote: On Fri, Oct 09, 2009 at 09:58:14AM +0100, Daniel P. Berrange wrote: On Fri, Oct 09, 2009 at 10:19:08AM +0200, Dan Kenigsberg wrote: On Wed, Oct 07, 2009 at 12:59:39PM +0100, Daniel P. Berrange wrote: On Tue, Oct 06, 2009 at

Re: [libvirt] Help needed: simple python api to obtain events

2009-10-07 Thread Daniel P. Berrange
On Tue, Oct 06, 2009 at 07:04:29PM +0200, Dan Kenigsberg wrote: Would someone help me have a shrink-wrapped solution for obtaining libvirt events in python? I'm looking for a python module with no API calls (or maybe just a few). I'd like to register a callback functions with

Re: [libvirt] Help needed: simple python api to obtain events

2009-10-07 Thread Daniel P. Berrange
On Tue, Oct 06, 2009 at 07:04:29PM +0200, Dan Kenigsberg wrote: Would someone help me have a shrink-wrapped solution for obtaining libvirt events in python? I decided to re-write the demo program so that is shows a serious production kwalitee event loop implementation that can be used in real

Re: [libvirt] Help needed: simple python api to obtain events

2009-10-07 Thread Daniel Veillard
On Wed, Oct 07, 2009 at 12:59:39PM +0100, Daniel P. Berrange wrote: On Tue, Oct 06, 2009 at 07:04:29PM +0200, Dan Kenigsberg wrote: Would someone help me have a shrink-wrapped solution for obtaining libvirt events in python? I decided to re-write the demo program so that is shows a serious

[libvirt] Help needed: simple python api to obtain events

2009-10-06 Thread Dan Kenigsberg
Would someone help me have a shrink-wrapped solution for obtaining libvirt events in python? I'm looking for a python module with no API calls (or maybe just a few). I'd like to register a callback functions with virConnect.domainEventRegister(), and want them to be called in the context of a