[Zope] Question re manage_users

Martijn Pieters mj@digicool.com
Tue, 4 Jan 2000 02:55:46 -0500


> Hi,  
>    I'm calling this method after setting the folwloing
> attributes in the REQUEST var.  and then calling the
> manage_users method.
> 
>   <dtml-call
> "REQUEST.set('name',summary['user_name'])">
>   <dtml-call
> "REQUEST.set('password',summary['password'])">
>   <dtml-call
> "REQUEST.set('confirm',summary['password'])">
>   <dtml-call "REQUEST.set('roles', 'Manager')">
>                <dtml-call
> "acl_users.manage_users('Add', REQUEST, RESPONSE)">
> 
> 
> It creates the account but gives me the following
> error when I try to manage the account:
> 
> Zope has encountered an error while publishing this
> resource. 
> 
>           Error Type: TypeError
>           Error Value: string member test needs char
> left operand.

Roles should be a list:

   <dtml-call "REQUEST.set('roles', ['Manager'])"> 

-- 
Martijn Pieters, Software Engineer 
| Digital Creations http://www.digicool.com 
| Creators of Zope      http://www.zope.org 
| mailto:mj@digicool.com       ICQ: 4532236
| PGP:
http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 
-------------------------------------------