basically, you'll want to do something along the lines of: request = context.REQUEST response = request.RESPONSE if request.form['Username'] in context.acl_users.getUserNames(): response.redirect('/UserAlreadyExists.html') else: # add user here On Mon, 2001-10-29 at 12:11, Rob Foster wrote:
Here's the setup:
I'm trying to add users to my site by having them fill out a form with the following fields:
Username Password Confirm (password confirmation)
I want the form to post to a python script that will check the folder and do a redirect to another document depending on what happens... I don't know Python that well. I've tried doing it in dtml with no results.
Can someone help me with a little example code or at least point me to a product that does this? Thanks in advance. -Rob
_______________________________________________ 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 )
-- "There's never enough time to do | M. Adam Kendall all the nothing you want." | mak@kha0s.org -Bill Watterson (Calvin and Hobbes) | http://www.zopelabs.com