[Zope] programming local roles

Bill Kerr kerrb@senet.com.au
Sun, 2 Jun 2002 04:45:39 +0930


I've setup some code to add a group of users and folders for those users to
an existing folder. I want to add to this code so that each user has Manager
Roles as local roles within their own folder. Too hard for me at this stage,
can anyone help? The code so far is:-

<dtml-var standard_html_header>
<h2><dtml-var title_or_id></h2>
<dtml-in expr="['user1','user2']">
<dtml-call expr="REQUEST.set('roles',['viewCopy'])">
<dtml-call expr="REQUEST.set('name',_['sequence-item'])">
<dtml-call expr="REQUEST.set('password','change')">
<dtml-call expr="REQUEST.set('confirm','change')">
<dtml-call expr="REQUEST.set('domains',[])">
<dtml-call expr="acl_users.manage_users('Add',REQUEST,RESPONSE)">
<dtml-call expr="manage_addFolder(_['sequence-item'],'')">
The user <dtml-var "_['sequence-item']"> has been added.
</dtml-in>
<dtml-var standard_html_footer>

- Bill Kerr