[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope-coders
Subject:    [Zope-Coders] Re: [Zope-Checkins] CVS: Zope/lib/python/AccessControl/securitySuite - SecurityBase.py
From:       Shane Hathaway <shane () zope ! com>
Date:       2001-10-18 16:23:14
[Download RAW message or body]

Jeremy Hylton wrote:

>>>>>>"SH" == Shane Hathaway <shane@digicool.com> writes:
>>>>>>
> 
>   SH> - Corrected role comparison.  "None" means anonymous, an empty
>   SH>   tuple means private, and private objects are not accessible
>   SH>   even by managers.
> 
> It seems like it would be clearer to have explicit "anonymous" and
> "private" objects rather than trying to remember what the special
> meanings of two builtin types are.
> 
> class Anonymous:
>     pass
> 
> class Private:
>     pass
> 
> You could use either the class object or a singleton instance.

Agreed, but I don't have a choice in the matter.  This is how Zope 
works.  Someday we'll fix it, hopefully.

Shane



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic