summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2009-09-23 12:51:55 -0400
committerCole Robinson <crobinso@redhat.com>2009-10-05 13:31:38 -0400
commit3b8720b5d8c73a7f753543eeee89bafa890efe4a (patch)
treea4fd00562198873540796a1ff63249f15c139d2e
parent4659775fd18ffb4264fb4e225996f800319c3613 (diff)
downloadlibvirt-python-split-3b8720b5d8c73a7f753543eeee89bafa890efe4a.tar.gz
libvirt-python-split-3b8720b5d8c73a7f753543eeee89bafa890efe4a.tar.xz
libvirt-python-split-3b8720b5d8c73a7f753543eeee89bafa890efe4a.zip
python: Fix generated virInterface method names
A mistake in the generator was causing virInterface methods to be generated with unpredicatable names ('ceUndefine', instead of just 'undefine'). This fixes the method names to match existing convention. Does anyone care if we are breaking API compat? My guess is that no one is using the python interface bindings yet. Signed-off-by: Cole Robinson <crobinso@redhat.com>
-rwxr-xr-xgenerator.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/generator.py b/generator.py
index de5507e..17eaf1a 100755
--- a/generator.py
+++ b/generator.py
@@ -761,10 +761,10 @@ def nameFixup(name, classe, type, file):
func = name[10:]
func = string.lower(func[0:1]) + func[1:]
elif name[0:15] == "virInterfaceGet":
- func = name[13:]
+ func = name[15:]
func = string.lower(func[0:1]) + func[1:]
elif name[0:12] == "virInterface":
- func = name[10:]
+ func = name[12:]
func = string.lower(func[0:1]) + func[1:]
elif name[0:12] == 'virSecretGet':
func = name[12:]
@@ -817,6 +817,9 @@ def nameFixup(name, classe, type, file):
func = "OSType"
if func == "xMLDesc":
func = "XMLDesc"
+ if func == "mACString":
+ func = "MACString"
+
return func