terrible kludge to set password
I was unsuccessful at finding any examples of changing a user's password from DTML, but I did see a few requests for such functionality. I bumped around quite awhile today trying to figure out how to do it. I didn't come up with a good way, but I did find something that works. So, although it's terribly ugly, I thought I'd throw my example out. Perhaps it'll save someone else some time. <dtml-call "REQUEST.set('name', 'k.laird.1')"> <dtml-call "REQUEST.set('password', '5678')"> <dtml-call "REQUEST.set('confirm', '5678')"> <dtml-call "REQUEST.set('roles', ['CRUP_admin'])"> <dtml-call "acl_users.manage_users('Change', REQUEST, RESPONSE)"> --kyler
On Mon, Jan 01, 2001 at 04:29:24PM -0500, Kyler B. Laird wrote:
I was unsuccessful at finding any examples of changing a user's password from DTML, but I did see a few requests for such functionality.
http://www.zope.org/Members/tseaver/user_settable_passwords -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu
Happy new year everyone, all the best. Question: Where can I get the specifications for acl_users.manage_users()? Mohan. -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Kyler B. Laird Sent: Monday, January 01, 2001 4:29 PM To: zope@zope.org Subject: [Zope] terrible kludge to set password I was unsuccessful at finding any examples of changing a user's password from DTML, but I did see a few requests for such functionality. I bumped around quite awhile today trying to figure out how to do it. I didn't come up with a good way, but I did find something that works. So, although it's terribly ugly, I thought I'd throw my example out. Perhaps it'll save someone else some time. <dtml-call "REQUEST.set('name', 'k.laird.1')"> <dtml-call "REQUEST.set('password', '5678')"> <dtml-call "REQUEST.set('confirm', '5678')"> <dtml-call "REQUEST.set('roles', ['CRUP_admin'])"> <dtml-call "acl_users.manage_users('Change', REQUEST, RESPONSE)"> --kyler _______________________________________________ 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 )
Hello, I'm making a generic DTML-method which shows a bar like AltaVista does: [ < previous] [1] [2] [3] [4] [next > ] I need to know the number of rows the database returned. In appendix A of the Zope book, I see I can use total-name etc. How can I get the total number of rows, independent of column names? Can I do it without rewriting the SQL-queries? Bye, Edwin Martin. --- The world is moving so fast these days that the person who says it can't be done is generally interrupted by someone doing it. -- Harry Emerson Fosdick
<dtml-var sequence-length> ----- Original Message ----- From: "Edwin Martin" <e.j.martin@chello.nl> To: <zope@zope.org> Sent: Tuesday, January 02, 2001 7:23 AM Subject: [Zope] dtml-in: total??
Hello,
I'm making a generic DTML-method which shows a bar like AltaVista does:
[ < previous] [1] [2] [3] [4] [next > ]
I need to know the number of rows the database returned.
In appendix A of the Zope book, I see I can use total-name etc.
How can I get the total number of rows, independent of column names?
Can I do it without rewriting the SQL-queries?
Bye, Edwin Martin.
--- The world is moving so fast these days that the person who says it can't be done is generally interrupted by someone doing it. -- Harry Emerson Fosdick
_______________________________________________ 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 )
On Tue, 2 Jan 2001, Mohan Baro wrote:
Where can I get the specifications for acl_users.manage_users()?
I know it's not the best answer, but you can read the source: ZOPE_DIR/lib/python/AccessControl/User.py ololo@zeus.polsl.gliwice.pl, oleks@helper.pl /--------------------------------------\ | `long long long' is too long for GCC | \--------------------------------------/
participants (6)
-
Aleksander Salwa -
Edwin Martin -
Jonothan Farr -
Kyler B. Laird -
Mike Renfro -
Mohan Baro