Chris Withers wrote at 2005-3-31 12:26 +0100:
>Dieter Maurer wrote:
>> Any user has the "Anonymous" role whether or not it is authenticated.
>returns ('Manager', 'Authenticated') when logged in as a manager and
>('Anonymous',) when anonymous?
>>>A user will never have Authenticated and Anonymous roles at the same time.
>> This is wrong.
As others already pointed out:
There is an inconsistency between what "getRoles()" returns
and what roles a user *effectively* has.
The inconsistency might be justified as follows:
When every user has invariably the "Anonymous" role,
this can just be taken a general default that need
not be expressed in "getRoles()".
Zope maillist - Zope@zope.org
** No cross posts or HTML encoding! **
(Related lists -