[Zope] Accessing httplib from a Zope Python script

Geir Bækholt Geir Bækholt
Thu, 27 Mar 2003 17:14:38 +0100


On  Thu, 27 Mar 2003 08:50:53 -0700 GMT (..16:50 where i live(GMT+1) )
Sean Winstead asked the Zope mailinglist about the following:

.....
SW> So I put the "result =
SW> httplib..." line into function verifyPayPal, module ipnSupport.py within
SW> the Zope\Extensions subfolder. I then added the extension to the same
SW> folder containing the Python script. The extension has ID ipnSupport,
SW> referening the specified script and function. When I run the following
SW> script...

SW>   result = verifyPayPal
SW>   return result

SW> The following error is returned:

SW>   Error Type: NameError
SW>   Error Value: global name 'verifyPayPal' is not defined

result = context.verifyPayPal()
should do the trick :)

--
Geir Bækholt