提交 d59bfbd0 编写于 作者: D Daniel Veillard

* python/generator.py: fix the python binding generation for

  virNetworkLookup...() functions, which were clashing with
  equivalent virConnLookup...() equivalents, as reported by
  Tatsuro Enokura
Daniel
上级 6f7f84a7
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
......
......@@ -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:]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册