[Zope] Python Methods? (don't work for me...)

Evan Simpson evan@4-am.com
Mon, 13 Sep 1999 12:05:30 -0500


Tony McDonald wrote:

> I entered
> REQUEST, urllib
> into the parameter list, and got the same message.

I really need to edit the example to make this more explicit; You have to
pass the actual urllib module (or a reasonable facsimile) as the urllib
parameter.  You probably need an external method for this, which can be as
simple as:

def get_urllib():
  import urllib
  return urllib

If you're running scarywildunchained PythonMethods, you can simply take
urllib out of the parameter list and add "import urllib" at the start of the
code.