[Zope] Returning previous form

alienoid alienoid <alienoid@is.lg.ua>
Thu, 28 Mar 2002 10:59:57 +0200


Hello zopistas,

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?

addClientForm:
<form action="addClient">
...
<input type="text" name="user.login:record">
...
</form>

addClient script:
if inDB(user.login):
    return context.addClientForm() - but this returns empty form
    return context.addClientForm(REQUEST) - this returns empty form too

-- 
Best regards,
 alienoid                          mailto:alienoid@is.lg.ua