On Thu, Mar 3, 2011 at 16:22, John de la Garza <[email protected]> wrote:

> I am now able to pass a list to a rpc call and get a dict.
>
> my python code has to ignore the last element manually like so:
>
>
>
>  from jsonrpc import handleCGI, ServiceMethod
>
>
>  @ServiceMethod
>    def get_prog(self, runs):
>        runData = {}
>        for run in runs[:-1]:
>
>
> is this normal?  I would have hopped the rpclib (python server side)
> would have handled this...  Or is it just something I'm doing wrong?
>
> I call it like this:
>
> runData = rpc.callSync("get_prog",runs);
>

What does the Net tab show you about the data that's being passed from the
client? Does it have one more element than it should, or is it the correct
data? Is your server, for some reason, adding an extra element to the data?

Derrell
------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to