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
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:
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:
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
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]
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