10 Jan
2004
10 Jan
'04
8:25 p.m.
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