[Zope-dev] urllib not available in Python Scripts?

Evan Simpson evan@4-am.com
Sun, 17 Dec 2000 19:49:11 -0500


From: "Itai Tavor" <itai@optusnet.com.au>
> >   import urllib
> >   urllib.__allow_access_to_unprotected_subobjects__ = 1
 
> Ok, this is simple enough, and it works. But... it opens access to 
> everything in urllib.

For now, the best way is to use a dictionary of names, like this:

  import urllib
  urllib.__allow_access_to_unprotected_subobjects__ = {
    'quote': 1, 'unquote': 1,
  }

Cheers,

Evan @ digicool & 4-am