[Zope] XML-RPC and REQUEST object

Stefan H. Holek stefan@epy.co.at
Thu, 28 Jun 2001 17:09:52 +0200 (CEST)


On Thu, 28 Jun 2001, Sedat Yilmazer wrote:

>  As I look at the Products directory I see lots of functions written in
> a way depending on the REQUEST object containing all the data. Now If I
> call up a python method Can I assume that the REQUEST object is filled
> up with the parameters that I pass via XML-RPC? if so what is the
> mapping ( structs, arrays and base64 encoded data) ?

No, you can't. You can however write your python methods in a way as to
only use the REQUEST's dict interface, and pass a plain dict when calling
through XML-RPC. Use for example REQUEST[x] = y and not REQUEST.set(x, y)

HTH,
Stefan