[zope2-tracker] [Bug 659968] Re: guarded_import does not support 5-args form

Hanno Schlichting hanno at hannosch.eu
Sun Oct 17 07:41:06 EDT 2010


I fixed the default value to be -1 now. Thanks for noticing.

I don't understand enough about the semantics of the level argument and
the way the code checks for allowed modules to change the code any
further.

The only purpose of my change is to give a better error message for this
case. This doesn't try to actually support the level argument in any
way. I hope you might be able to come up with tests and a patch for
this.

-- 
guarded_import does not support 5-args form
https://bugs.launchpad.net/bugs/659968
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.


More information about the zope2-tracker mailing list