[Zope] Setting Roles

Martijn Pieters mj@antraciet.nl
Tue, 02 Nov 1999 11:00:29 +0100


At 10:17 02/11/99 , Bernhard Nessler wrote:

>Hallo,
>with the following code I set a new user with passord in the current 
>folder but the role is always empty. The role exists in the folder.
>
>dtml-call"REQUEST.set('name','karii7')"
>dtml-call"REQUEST.set('password','npwd')"
>dtml-call"REQUEST.set('confirm','npwd')"
>dtml-call"REQUEST.set('roles:list','ExBenutzer')"
>dtml-call "acl_users.manage_users(submit='Add', REQUEST=REQUEST)"
>
>1. what is wrong?
>2. in which documentation I can find this?

Make that

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

REQUEST contains form fields _after_ processing modifiers like :list.

--
Martijn Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| Tel: +31-35-7502100 Fax: +31-35-7502111
| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
------------------------------------------