Is there a way, or more accurately, has anyone done something like this w/o making the form call it-self? I am asking because I am currently in a bit of a nightmare having to maintain other peoples code that uses forms that call themselves recursively, and I am trying to develop some coding guidelines for my projects that will ban the usage of forms that call themselves. I know, I know, they can be damned handy at times but, as I said, the maintenance burden can be a pretty masive, especially when you try to debug/modify them. Or is there no other way? Thanks, /dario ----- Original Message ----- From: "Dylan Reinhardt" Sent: Saturday, April 05, 2003 2:33 AM Subject: Re: [Zope] redirects & POST
If I understand correctly, you want a form that updates information and returns itself with updated data & allow multiple updates using POST.
Don't bother with redirection... just have the form call itself. Put a hidden input in the form with a name like "updated" and check for its existence. If it's in the request, use dtml-call to process any changes that have been submitted.
Call that processing method at the very top of the form and everything else should fall into place... your fields should find themselves populated with fresh data without any extra effort.
HTH,
Dylan