19 May
2005
19 May
'05
4:46 p.m.
-----Original Message----- From: Lennart Regebro [mailto:regebro@gmail.com] Sent: Thursday, May 19, 2005 12:03 PM To: ken@sunward.org Cc: J Cameron Cooper; zope@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'.