[Zope] merging the contents of two acl_users folders

David H bluepaul at earthlink.net
Thu Jun 23 16:13:00 EDT 2005


/Jim,

It can be done, eg

 loop thru source.acl_users
   for each user object
     stuff REQUEST with name,password,confirm (password again) and roles, eg
     REQUEST.set('name',username), etc
//     context.Destination.acl_users.manage_users('Add',REQUEST,RESPONSE)//


David



In DTML: (via google)
//// <dtml-var expr="manage_addUserFolder()">
// <dtml-call "REQUEST.set('name', username)">
// <dtml-call "REQUEST.set('password', password)">
// <dtml-call "REQUEST.set('confirm', password)">
// <dtml-call "REQUEST.set('roles', ['Authenticated'])">
// <dtml-call "acl_users.manage_users('Add',REQUEST,RESPONSE)">
//
/



Jim Abramson wrote:

> Can it be done?
>
> If not that, the ability to move selected users from one acl_users to 
> another would be a decent plan B.
>
> This is a one-time move, so I consider any effective solution viable, 
> even if some manual hacking is involved.
>
> Thanks for any help,
> Jim
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20050623/903a3478/attachment.htm


More information about the Zope mailing list