[Zope] Create a list in the REQUEST space ????

Itamar Shtull-Trauring itamars@ibm.net
Wed, 24 Nov 1999 19:36:42 +0200


"Daniel G. Rusch" wrote:
> 
> Help!,
> 
> We are trying to load user roles from a table. roles needs to be a list
> so that the manage_users call can set the roles.
> 
> The question is how does one create a list on the fly in the REQUEST
> Space...? The below snippet does not create the list, any thoughts???
> 
> //snippet
> <dtml-in getUserRoles>
>         <dtml-call "REQUEST.set('roles:list',name)">
> </dtml-in>
> <dtml-call "acl_users.manage_users(submit='Add', REQUEST=REQUEST)">

Do it as you would in python:
	<dtml-call "REQUEST.set('roles': ['role1','role2', name])">
or in your case
	<dtml-call "REQUEST.set('roles': [name,])">

-- 
Itamar S.T.  itamars@ibm.net