Re: [Zope-dev] Security problems importing from python package.

2002-11-25 Thread Chris Withers
Clemens Robbenhaar wrote: If one tries to import the code from a python script, the security machinery first check, if the module has some security info, and imports it afterwards, if the info is found. But as the module is not imported anyway, it is not initialized, and has not such info and thu

[Zope-dev] Security problems importing from python package.

2002-11-25 Thread Clemens Robbenhaar
At Thu, 21 Nov 2002 12:16:09 +, Chris Withers wrote: > I'm trying to get stripogram working from Script(Pythons). I thought I had it, > but it appears I don't. > > I added the following in the __init__.py of the stripogram package: > > try: > from AccessControl import ModuleSec

[Zope-dev] Security problems importing from python package.

2002-11-21 Thread Chris Withers
Hi, I'm trying to get stripogram working from Script(Pythons). I thought I had it, but it appears I don't. I added the following in the __init__.py of the stripogram package: try: from AccessControl import ModuleSecurityInfo,allow_module except ImportError: # no Zope around raise el