xmlrpc.py issue with python 3.3.1

Bug #1166220 reported by dde
10
This bug affects 2 people
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(test_string)
+ fin = io.StringIO(test_string)

change line 150:
- for type_class, type_info in type_dict.iteritems():
+ 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\Python\lib\site-packages\ladon-0.7.8-py3.3.egg\ladon\server\wsgi_application.py", line 368, in __call__
    output += dispatcher.iface.description(service_url,charset)
  File "C:\Code\Python\lib\site-packages\ladon-0.7.8-py3.3.egg\ladon\interfaces\base.py", line 80, in description
    service_url,encoding)
  File "C:\Code\Python\lib\site-packages\ladon-0.7.8-py3.3.egg\ladon\interfaces\xmlrpc.py", line 194, in generate
    self._get_type_name(method_info['rtype'][0])
TypeError: 'type' object is not subscriptable
-----

Revision history for this message
Mario Benito (q-ubuntu-n) wrote :

In:

interfaces\xmlrpc.py", line 194, in generate
    self._get_type_name(method_info['rtype'][0])

you must remove the "[0]"

The bug is still in v 0.9.32

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.