[Zope3-dev] Re: Problem with zope.app.security._protections for
tests
Fred Drake
fdrake at gmail.com
Mon Aug 8 10:15:07 EDT 2005
On 8/8/05, Gary Poster <gary at zope.com> wrote:
> Right. As I perhaps only hinted in the proposal, it is impossible to
> import _protections from zope.app.security, because of this in the
> __init__:
>
> import _protections
> _protections.protect()
> del _protections
Depends on how you spell the import, unfortunately:
>>> import zope.app.security._protections
>>> zope.app.security._protections
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: cannot import name _protections
>>> from zope.app.security._protections import protect
>>> protect
<function protect at 0xb7a394c4>
-Fred
--
Fred L. Drake, Jr. <fdrake at gmail.com>
Zope Corporation
More information about the Zope3-dev
mailing list