summaryrefslogtreecommitdiffstats
path: root/generator.py
diff options
context:
space:
mode:
authorMichal Privoznik <mprivozn@redhat.com>2012-12-28 16:22:09 +0100
committerMichal Privoznik <mprivozn@redhat.com>2012-12-28 16:22:09 +0100
commit9ad1c7f711344550e971d365faf9987923bc671f (patch)
tree29e8cc48f84e0c1e63c70c813f58a18c00f1840e /generator.py
parent6eeeb3da169135d65b938d617650945b6ad97bc0 (diff)
downloadlibvirt-python-split-9ad1c7f711344550e971d365faf9987923bc671f.tar.gz
libvirt-python-split-9ad1c7f711344550e971d365faf9987923bc671f.tar.xz
libvirt-python-split-9ad1c7f711344550e971d365faf9987923bc671f.zip
python: Adapt to virevent rename
With our recent renames under src/util/* we forgot to adapt python wrapper code generator. This results in some methods being not exposed: $ python examples/domain-events/events-python/event-test.py Using uri:qemu:///system Traceback (most recent call last): File "examples/domain-events/events-python/event-test.py", line 585, in <module> main() File "examples/domain-events/events-python/event-test.py", line 543, in main virEventLoopPureStart() File "examples/domain-events/events-python/event-test.py", line 416, in virEventLoopPureStart virEventLoopPureRegister() File "examples/domain-events/events-python/event-test.py", line 397, in virEventLoopPureRegister libvirt.virEventRegisterImpl(virEventAddHandleImpl, AttributeError: 'module' object has no attribute 'virEventRegisterImpl'
Diffstat (limited to 'generator.py')
-rwxr-xr-xgenerator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator.py b/generator.py
index e9b9270..bae4edc 100755
--- a/generator.py
+++ b/generator.py
@@ -132,7 +132,7 @@ class docParser(xml.sax.handler.ContentHandler):
if tag == 'function':
if self.function != None:
if (self.function_module == "libvirt" or
- self.function_module == "event" or
+ self.function_module == "virevent" or
self.function_module == "virterror"):
function(self.function, self.function_descr,
self.function_return, self.function_args,