12 Feb
2002
12 Feb
'02
7:03 p.m.
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.