[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] 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>
  File "examples/domain-events/events-python/event-test.py", line 543, in main
  File "examples/domain-events/events-python/event-test.py", line 416, in virEventLoopPureStart
  File "examples/domain-events/events-python/event-test.py", line 397, in virEventLoopPureRegister
AttributeError: 'module' object has no attribute 'virEventRegisterImpl'

Pushed under trivial rule.

 python/generator.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/generator.py b/python/generator.py
index e9b9270..bae4edc 100755
--- a/python/generator.py
+++ b/python/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,

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]