[Zope] Creating a new user

Chris Withers chrisw@nipltd.com
Wed, 02 May 2001 15:03:15 +0100


Steve Drees wrote:
> 
> How would one do this in a python script?

REQUEST = context.REQUEST
RESPONSE = REQUEST.RESPONSE
REQUEST.set('name', 'theUserName)
REQUEST.set('password', 'thePassword)
REQUEST.set('confirm', 'thePassword')
REQUEST.set('domains', [])
REQUEST.set('roles', ['Manager', 'Owner'])
context.acl_users.manage_users('Add', REQUEST,RESPONSE)

cheers,

Chris