[Zope] Adding Users To Acl_users

2000-12-14 Thread Mike Kelland




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?

Thanks!
Mike Kelland
[EMAIL PROTECTED]



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 )




[Zope] Adding users to acl_users

2000-12-08 Thread Mike Kelland



Hi everyone, 

I tried to add the manage_users thing that someone 
referred me to (sorry that I don't remember who) and got the following 
error:

Error Type: KeyErrorError Value: 
__cmp__

my code is as follows:

table width="600" border="0" cellpadding="3" 
cellspacing="1"tr class="one"td style="text-align:left" 
colspan="2"User Name: brinput 
name="name"/td/tr

tr class="two"td 
style="text-align:left"Password:brinput 
name="password"/tdtd 
style="text-align:left"Confirm Password: brinput 
name="confirm"/td/tr

tr class="one" td 
style="text-align:left" colspan="2"Role: brSELECT 
NAME="roles:list" SIZE="5" 
MULTIPLE OPTION 
VALUE="Manager"Manager 
OPTION VALUE="Owner"Owner 
OPTION VALUE="User"User/SELECTbrINPUT 
TYPE="TEXT" NAME="domains:tokens" VALUE="" 
SIZE="40"/td/tr

tr class="two"td 
colspan="2"input type="submit" name="submit" 
value="Add"/table
-END-
to get the information and I'm using the 
code:

dtml-with acl_usersdtml-call 
expr="manage_users(REQUEST)"/dtml-with
to process it. I've taken the code pretty 
much directly from the acl_users folder's Add form... Anyone know what's 
going on? 

Thanks again for everyone's help. The 
_.str(date) thing worked perfectly with my Access date problem... 

Mike Kelland
[EMAIL PROTECTED]