[Zope] Creating a new user

Steve Drees drees@the-bridge.net
Wed, 2 May 2001 08:26:34 -0500


How would one do this in a python script?

> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Arno
> Gross
> Sent: Wednesday, May 02, 2001 9:18 AM
> To: Blue, Neil; zope@zope.org
> Subject: Re: [Zope] Creating a new user
> 
> 
> With the following code you can add a new user:
> 
> <dtml-call "REQUEST.set('name', 'theUserName)">
> <dtml-call "REQUEST.set('password', 'thePassword)">
> <dtml-call "REQUEST.set('confirm', 'thePassword')">
> <dtml-call "REQUEST.set('domains', [])">
> <dtml-call "REQUEST.set('roles', ['Manager', 'Owner'])">
> <dtml-call "acl_users.manage_users('Add', REQUEST,RESPONSE)">
> 
> Best regards
>    Arno
> 
> On Wed, 02 May 2001, Blue, Neil wrote:
> > Hello,
> > 
> > I have been looking at the API and I can't find a way to create a user
> > programatically. Am I right in thinking that this is not 
> possible using the
> > standar user folder?
> > 
> > Cheers
> > Neil Blue
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>