[Zope] Returning previous form

Dieter Maurer dieter@handshake.de
Fri, 29 Mar 2002 13:25:45 +0100


alienoid writes:
 > I have a ZPT page with user registration form in it. The form calls
 > python script and if the user login is already in database I have to
 > return previous filled form to change the user login. How can I
 > implement this?
The script returns a dictionary with the data to be used inside the form.
If the user exists in the database, the dictionary is filled with the
data from the database. Otherwise, it may be filled from the request
or be empty (handle undefined keys in your template!).


Dieter