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

2000-12-17 Thread Evan Simpson
From: "Itai Tavor" [EMAIL PROTECTED] 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

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

2000-12-17 Thread Itai Tavor
Evan Simpson wrote: From: "Itai Tavor" [EMAIL PROTECTED] 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:

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

2000-12-16 Thread Ken Manheimer
On Sat, 16 Dec 2000, Evan Simpson wrote: From: "Itai Tavor" [EMAIL PROTECTED] [...] Sure. Since you've already got a MoreBuiltins module, that's probably a fine place to put this. In MoreBuiltins/__init__.py (or a brand new Product directory of your choice) put the following lines:

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

2000-12-15 Thread Evan Simpson
From: Itai Tavor [EMAIL PROTECTED] In Python Methods I could do urllib.quote(...). This doesn't work in Python Scripts. Is quote considered a security risk? No, but only the modules available to DTML are importable by default. You would need to provide security declarations in order to

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

2000-12-15 Thread Dieter Maurer
Itai Tavor writes: In Python Methods I could do urllib.quote(...). This doesn't work in Python Scripts. Is quote considered a security risk? "quote" not, but maybe "urllib". Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED]

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

2000-12-14 Thread Itai Tavor
Hi, sorry for the recent barrage of posts... In Python Methods I could do urllib.quote(...). This doesn't work in Python Scripts. Is quote considered a security risk? Itai -- Itai Tavor"Je sautille, donc je suis." C3Works[EMAIL PROTECTED] - Kermit the