From 6e0f43995baebd74a2789e2f68d2b70efd1d06b8 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Thu, 15 Mar 2007 15:23:21 +0000 Subject: * python/generator.py: fix the python binding generation for virNetworkLookup...() functions, which were clashing with equivalent virConnLookup...() equivalents, as reported by Tatsuro Enokura Daniel --- generator.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/generator.py b/generator.py index 50a3bee..2048765 100755 --- a/generator.py +++ b/generator.py @@ -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:] -- cgit