Maybe you've already solved this but I know that the
IssueTrackerProduct has a Issue User Folder which when instanciated
has an option to convert existing acl_users users. You might want to
dig into its source code where it picks up old users.
On 6/23/05, Jim Abramson [EMAIL PROTECTED] wrote:
Title: merging the contents of two acl_users folders
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.
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
Jim,
David H didn't think thru his answer. I do not think you can acquire
*passwords* the way I indicated. If so my suggestion will not work.
The approach will work otherwise.
Maybe someone that knows about this will pitch in. I'm reviewing
User.py now...
David
.
David H wrote:
Jim,
Alright, I found the way to get needed user information in order to
merge (create users in a dest folder).
You need an external script. Otherwise you will not be able to access
acl_users _getPassword(). Local scripts enforce this for security
reasons.
So here is the external script that