[Zope-PAS] Re: [Checkins] SVN: PluggableAuthService/branches/tseaver-pluggable_allowed/ First pass at making PropertiedUser.allowed pluggable (no local roles plugin yet).

Tres Seaver tseaver at palladion.com
Fri Aug 4 10:17:31 EDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Florent Guillaume wrote:
> On 3 Aug 2006, at 23:27, Tres Seaver wrote:
>> Modified:
>> PluggableAuthService/branches/tseaver-pluggable_allowed/PropertiedUser.py
>> ===================================================================
>> ---
>> PluggableAuthService/branches/tseaver-pluggable_allowed/PropertiedUser.py   
>> 2006-08-03 18:35:05 UTC (rev 69343)
>> +++
>> PluggableAuthService/branches/tseaver-pluggable_allowed/PropertiedUser.py   
>> 2006-08-03 21:27:52 UTC (rev 69344)
>> @@ -149,9 +150,29 @@
>>          o Ripped off from AccessControl.User.BasicUser, which provides
>>            no other extension mechanism. :(
>>          """
>> +        plugins = aq_parent( self )._getOb( 'plugins' )
>> +
>> +        # This isn't really a policy -- everything in Zope expects that
>> +        # 'roles = ()' means "VERBOTEN".
>>          if object_roles is _what_not_even_god_should_do:
>>              return 0
> 
> I don't understand the comment.
> _what_not_even_god_should_do is not (), it's a special distinct value.

Yep, I was working from memory:  it is actually an empty list, not an
empty tuple, created a module scope in cAccessControl.c / ImplPython.py.

Thanks for the correction!


Tres.
- --
===================================================================
Tres Seaver          +1 202-558-7113          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE01b7+gerLs4ltQ4RAmPBAJ0TKgE+ACKZAk6P0DP74OMcc/kCqACgp9MZ
Fe93kW+ggvPcOKoEPDEtpgE=
=Vp/f
-----END PGP SIGNATURE-----


More information about the Zope-PAS mailing list