[Zope3-dev] Re: Problem with zope.app.security._protections for
tests
Gary Poster
gary at zope.com
Mon Aug 8 10:17:35 EDT 2005
On Aug 8, 2005, at 10:15 AM, Fred Drake wrote:
> 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>
lol. eek. yuck. :-)
Gary
More information about the Zope3-dev
mailing list