Joshua Boverhof
-
2004-11-04
- milestone: --> v1.5.0
- assigned_to: nobody --> boverhof
- status: open --> closed-fixed
The wsdl2python code generator converts XML namespaces
to Python classes. It converts namespace characters
which are not legal for python class names to
underscores. It does not currently change '#' to '_',
so namespaces with '#' will cause the generator to
generate invalid Python code.
As a workaround, I added '#' to the re.sub in
ZSI/wsdl2python.py:
def textProtect(s):
"""process any strings we cant have illegal
chracters in"""
return re.sub('[-./:?#]', '_', s)