[Zope-dev] urllib not available in Python Scripts?
Itai Tavor
itai@optusnet.com.au
Mon, 18 Dec 2000 14:22:55 +1100
Evan Simpson wrote:
>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
Thanks! Nice and simple.
The moral of this story is, you got to know what to ask :-)
--
Itai Tavor "Je sautille, donc je suis."
C3Works itai@c3works.com - Kermit the Frog
"If you haven't got your health, you haven't got anything"