]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
* python/generator.py: fix the python binding generation for
authorDaniel Veillard <veillard@redhat.com>
Thu, 15 Mar 2007 15:23:21 +0000 (15:23 +0000)
committerDaniel Veillard <veillard@redhat.com>
Thu, 15 Mar 2007 15:23:21 +0000 (15:23 +0000)
  virNetworkLookup...() functions, which were clashing with
  equivalent virConnLookup...() equivalents, as reported by
  Tatsuro Enokura
Daniel

ChangeLog
python/generator.py

index d5cc28619f3991da6bfe8cd4dfd97ebc6d45e67a..e67433b487c5f9d8f0ebfe08868d797369a83a07 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Thu Mar 15 16:21:46 CET 2007 Daniel Veillard <veillard@redhat.com>
+
+       * python/generator.py: fix the python binding generation for
+         virNetworkLookup...() functions, which were clashing with
+         equivalent virConnLookup...() equivalents, as reported by
+         Tatsuro Enokura
+
 Thu Mar 15 15:26:20 CET 2007 Daniel Veillard <veillard@redhat.com>
 
        * src/virsh.c src/xen_internal.c: applied patch from Atsushi SAKAI
index 50a3bee4c631e2b686ac9f765459627ddfb60483..20487653505297ce132b93e9a9532e1e58b5aed9 100755 (executable)
@@ -576,12 +576,16 @@ function_post = {
 }
 
 def nameFixup(name, classe, type, file):
+    # avoid a desastrous clash
     listname = classe + "List"
     ll = len(listname)
     l = len(classe)
     if name[0:l] == listname:
         func = name[l:]
         func = string.lower(func[0:1]) + func[1:]
+    elif name[0:16] == "virNetworkLookup":
+       func = name[3:]
+       func = string.lower(func[0:1]) + func[1:]
     elif name[0:12] == "virDomainGet":
         func = name[12:]
         func = string.lower(func[0:1]) + func[1:]