[Zope] add user from python problem

Andreas Jung lists at zopyx.com
Thu Feb 15 13:35:24 EST 2007



--On 15. Februar 2007 18:31:46 +0000 garry saddington 
<garry at schoolteachers.co.uk> wrote:

> On Thu, 2007-02-15 at 18:58 +0100, Andreas Jung wrote:
>>
>> --On 15. Februar 2007 17:34:10 +0000 garry saddington
>> <garry at schoolteachers.co.uk> wrote:
>>
>>
>> >
>> >
>> >
>> >         roles='Manager'
>>
>> As the name 'roles' indicates you have to specify a sequence of roles
>> and not a *single* one.
>>
>> -aj
> Thanks this has fixed it but I still have questions:

> 1/Why can I specify only one when adding a user in the ZMI?

Isn't  ['Manager'] a sequence of roles? A sequence of one role?

> 2/What if I only want one role for the user?

See above.

> 3/Why does it accept the one role from my script - it is highlighted
> when I go to the ZMI?


????


-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20070215/de54e415/attachment.bin


More information about the Zope mailing list