Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Ticket #339 (defect)

Opened 3 years ago

Last modified 3 years ago

Returning lists from xmlRpcFilter results in only the first item being sent

Status: closed (fixed)

Reported by: peterhunt Assigned to: dowski
Priority: normal Milestone:
Component: CherryPy code Keywords:
Cc:

When I return a list from a method using xmlRpc, the filter only returns the first list item, so I have to wrap it in another list to get it to work.

I think this might have something to do with response.body

Change History

10/07/05 15:35:17: Modified by dowski

  • owner changed from rdelon to dowski.

10/09/05 15:06:52: Modified by dowski

Fixed in [729]. As suggested by fumanchu, I pretty much reimplemented _cphttptools.main() in xmlrpcfilter.beforeMain(). This avoids setting cherrypy.response.body to iterable(body). Now, when an xmlrpc method returns a type, it never gets wrapped as another type along the way.

This allowed me to remove the code that appeared to attempt to work around the iterable() issue - which is what finally took care of the problem.

Also included a test for xmlrpcfilter in the main test suite in [730].

10/09/05 15:07:00: Modified by dowski

  • status changed from new to closed.
  • resolution set to fixed.

Hosted by WebFaction

Log in as guest/cpguest to create tickets