[Zope] Calling a method with form data in POST mode from python script

Gilles Lenfant glenfant@bigfoot.com
Tue, 12 Feb 2002 20:03:38 +0100


Phil,

I know this but urllib (as most packages)  are not available in Zope
restricted python scripts for "security" reasons.
I found a workaround :

handlerObject = restrictedTraverse(urlOfHandler)
return handlerObject(context, context.REQUEST, param1=value1, param2=value2)


----- Original Message -----
From: "Phil Harris" <phil@harris-family.info>
To: "Gilles Lenfant" <glenfant@bigfoot.com>; <zope@zope.org>
Sent: Tuesday, February 12, 2002 4:58 PM
Subject: Re: [Zope] Calling a method with form data in POST mode from python
script


> There is an example of exactly this in the urllib and urllib2
documentation
> that comes with Python.
>