[Zope-PTK] Copying users to CMF

Jens Vagelpohl jens@digicool.com
Fri, 23 Feb 2001 07:43:22 -0500


excellent :)

i'll go and close out the bug report then.

jens


on 2/23/01 7:27, Priya Ramkumar at pra@baba9.com wrote:

> Hi Jens
> 
> Thanks a lot for the copy_user.py file and it works. I am now able to copy
> users to CMF.
> 
> Priya
> 
> 
> 
>> priya,
>> 
>> i have attached a different copy_users.py file for you to use. replace the
>> current one in your Extensions directory with this one and don't forget to
>> hit "edit" to activate the changes in the "copy_users" external method in
>> your ZODB. please let me know how it works for you.
>> 
>> this new method works for me in a 2.3.0-based install and should work for
>> you as well.
>> 
>> background:
>> the traceback you see is because after adding a user to the target
> acl_users
>> folder zope tried to redirect you to that acl_users' management screen.
>> using not "manage_users" but the underlying "_addUser" method instead
>> allowed me to specify "REQUEST=None" and prevent this redirect.
>> 
>> why this did not fail in 2.3.0 before i am not sure... ;)
>> 
>> jens
>>