xmlrpc.py issue with python 3.3.1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ladon |
New
|
Undecided
|
Unassigned |
Bug Description
Environment:
Python 3.3.1 for windows
ladon 0.7.8
Error
xmlrpc.py istn't working with python 3.3.1.
The other services (soap, jsonwsp, etc.) will work with some modifications in xmlrpc.py:
-----
change line 8:
- from StringIO import StringIO)
+ import io
change line 40:
- fin = StringIO(
+ fin = io.StringIO(
change line 150:
- for type_class, type_info in type_dict.
+ for type_class, type_info in type_dict.items():
-----
Nevertheless the xmlrpc description url returns the following error message:
-----Traceback (most recent call last):
Traceback (most recent call last):
File "C:\Code\
output += dispatcher.
File "C:\Code\
service_
File "C:\Code\
self.
TypeError: 'type' object is not subscriptable
-----
In:
interfaces\ xmlrpc. py", line 194, in generate _get_type_ name(method_ info['rtype' ][0])
self.
you must remove the "[0]"
The bug is still in v 0.9.32