[Zope-dev] Re: RestrtrictedPython vs zope.security.untrustedpython

Dieter Maurer dieter at handshake.de
Wed Nov 21 12:26:49 EST 2007


Chris Withers wrote at 2007-11-20 23:55 +0000:
>Dieter Maurer wrote:
>> You execute their code in a "globals" the "__builtins__" of which
>> contains precisely the builtins you want to give them.
>
>unfortunately that still leaves the import problems, correct?

The "import" "command" is mapped to the "__import__" builtin.

Thus, changing the "__import__" builtin....



-- 
Dieter


More information about the Zope-Dev mailing list