[Zope] python-script to python-script XMLRPC

Dieter Maurer dieter at handshake.de
Sat Jan 10 15:25:35 EST 2004


Dennis Allison wrote at 2004-1-9 18:13 -0800:
> ... XML-RPC ...
>To execute a method with id of foo, on then executes
>
>getattr( server, 'foo')( [params] )
>
>where params is a dictionary containing the name/value pairs needed by the
>method.
>
>This works for DTML methods,

Surprising...

>but fails for Python Scripts with diagnostics
>related to mismatched counts of parameters.  

When you pass a dictionary, the Python Script gets a single
argument (this dictionary).

Note that XML-RPC only support positional arguments and that
there is no calling magic. The target gets the positional
arguments as you pass them.

-- 
Dieter



More information about the Zope mailing list