Re: ---> CAN ANYONE PLEASE HELP?? (DTML QUESTION) <----
Hi, people!! I think I solved it! There is a bug in the code... You have to pass the parameter 'Delete' twice. Look at the example: <dtml-if "tipo=='3'"> <dtml-call "deleta(login=login)"> <dtml-call "REQUEST.set('names', [login])"> <dtml-call "REQUEST.set('submit','Delete')"> <dtml-call "acl_users.manage_users('Delete',REQUEST,RESPONSE)"> </dtml-if> By, folks!! :) On Thu, 05 Apr 2001 13:04:47 -0500 Daniel Rusch <drusch@globalcrossing.com> wrote:
I'll look into this a little more
Dan
afterz@zipmail.com wrote:
I`m having problems with that too... And this way the
page redirects
to zope`s page.
Someone??
--- In zope@y..., Daniel Rusch <drusch@g...> wrote:
Sorry it is something I made, Additionally, upon further testing, although it will change a users data (if submit ='Change') or add a user (if submit='Add'), it doesn't delete a user? go figure Zope documentation is incorrect.
Try the other post from Rik: /acl_users/manage_users?names:list=username&submit=Delete
Dan
Samantha Stansbie wrote:
Thanks but this did not work either - is GetPassword
a built in Zope method
or one that your have created yourself??
From: Daniel Rusch <drusch@g...> To: Samantha Stansbie <s_stansbie@h...> CC: zope@z... Subject: Re: [Zope] ---> CAN ANYONE PLEASE HELP?? (DTML QUESTION) <---- Date: Wed, 04 Apr 2001 15:37:13 -0500
This is how I change (edit a user) try this except of course change the 'Change' to 'Delete'
Dan
<dtml-call "REQUEST.set('name', login_name)"> <dtml-call "REQUEST.set('password', GetPassword(acl_users.getUser(login_name)))"> <dtml-call "REQUEST.set('confirm', password)"> <dtml-call "REQUEST.set('roles', roles)"> <dtml-call "acl_users.manage_users(submit='Change', REQUEST=REQUEST)"> ^^^^ This needs to be 'Delete'
Dan
Samantha Stansbie wrote:
Hi,
Can anyone help me? I am trying to delete users
from acl_users through DTML
but can't get it to work, I'm using the following DTML:
<dtml-call "REQUEST.set('name', usernm)"> <dtml-call "REQUEST.set('submit', 'Delete')"> <dtml-call "acl_users.manage_users('Delete',REQUEST,RESPONSE)">
I don't even get any error messages!
Thanks in advance
Sam
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
_______________________________________________ Zope maillist - Zope@z... 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 )
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
_______________________________________________ Zope maillist - Zope@z... 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 )
________________________________________________ Don't E-Mail, ZipMail! http://www.zipmail.com/
participants (1)
-
After Dark