[Checkins] SVN:
PluggableAuthService/branches/tseaver-pluggable_allowed/ First
pass at making PropertiedUser.allowed pluggable (no local roles
plugin yet).
Florent Guillaume
fg at nuxeo.com
Fri Aug 4 10:06:34 EDT 2006
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.
Florent
--
Florent Guillaume, Nuxeo (Paris, France) Director of R&D
+33 1 40 33 71 59 http://nuxeo.com fg at nuxeo.com
More information about the Checkins
mailing list