[Zope] How to make a ZPT-based form that calls itself? (Part II)
Ken Winter
ken at sunward.org
Thu May 19 12:46:59 EDT 2005
> -----Original Message-----
> From: Lennart Regebro [mailto:regebro at gmail.com]
> Sent: Thursday, May 19, 2005 12:03 PM
> To: ken at sunward.org
> Cc: J Cameron Cooper; zope at zope.org
> Subject: Re: [Zope] How to make a ZPT-based form that calls itself? (Part
> II)
>
> >What's wrong with this picture?
>
> This:
> context.REQUEST.RESPONSE.redirect('personform.htm')
>
> When you do this, you loose everything in the form. When you then in
> the personform.htm do "context.REQUEST.person_id" you get a key-error.
Assuming the data loss is due to the 'redirect', I tried substituting this
alternative line, suggested by JCC earlier, into the script:
context['personform.htm']()
But that just changed the error to KeyError: 'personform_htm'.
More information about the Zope
mailing list