RE: [Zope] Adding Users To Acl_users

2000-12-14 Thread Steve Drees

 Is it possible to add users to acl users from a form other than that in
the acl_users folder?
 I've tried replicating the form within a dtml-with acl_users tag with no
luck so far, has
 anyone actually done this and made it work?

dtml-call "REQUEST.set('name','bill')"
dtml-call "REQUEST.set('password','mypassword')"
dtml-call "REQUEST.set('confirm','mypassword')"
dtml-call "REQUEST.set('roles',['RegisteredUser'])"
dtml-call "acl_users.manage_users('Add',REQUEST,RESPONSE)"

Creates a user bill with password mypassword and role of RegisteredUser


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Adding Users To Acl_users

2000-12-14 Thread Mike Kelland

Perfect, thank you so much!

Mike Kelland - slowly getting the hang of this whole Zope thing...
[EMAIL PROTECTED]
- Original Message -
From: "Steve Drees" [EMAIL PROTECTED]
To: "Mike Kelland" [EMAIL PROTECTED]
Cc: "Zope@Zope. Org" [EMAIL PROTECTED]
Sent: Thursday, December 14, 2000 11:35 AM
Subject: RE: [Zope] Adding Users To Acl_users


  Is it possible to add users to acl users from a form other than that in
 the acl_users folder?
  I've tried replicating the form within a dtml-with acl_users tag with no
 luck so far, has
  anyone actually done this and made it work?

 dtml-call "REQUEST.set('name','bill')"
 dtml-call "REQUEST.set('password','mypassword')"
 dtml-call "REQUEST.set('confirm','mypassword')"
 dtml-call "REQUEST.set('roles',['RegisteredUser'])"
 dtml-call "acl_users.manage_users('Add',REQUEST,RESPONSE)"

 Creates a user bill with password mypassword and role of RegisteredUser


 ___
 Zope maillist  -  [EMAIL PROTECTED]
 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 )




___
Zope maillist  -  [EMAIL PROTECTED]
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 )