pyges: Make use of the namespace for the constructor classnames in codegen

This commit is contained in:
Thibault Saunier 2011-05-06 18:11:11 -03:00 committed by Thibault Saunier
parent 90f23b9a47
commit c66bdbe708

View file

@ -509,7 +509,13 @@ class DefsWriter:
m = func_new_pat.match(name) m = func_new_pat.match(name)
if pointer_pat.match(ret) and m: if pointer_pat.match(ret) and m:
cname = '' cname = ''
for s in m.group(1).split ('_'): names = m.group(1).split('_')
if self.namespace:
cname = self.namespace
names = names[1:]
for s in names:
cname += s.title() cname += s.title()
if cname != '': if cname != '':
self.fp.write(' (is-constructor-of "' + cname + '")\n') self.fp.write(' (is-constructor-of "' + cname + '")\n')