On Wed, 2003-11-19 at 06:39, Dylan Reinhardt wrote:
On Wed, 2003-11-19 at 02:20, Geir Bækholt wrote:
On Wed, 19 Nov 2003 10:03:43 +0000 GMT RI Dunfey asked the Zope mailinglist about the following:
It works fine with regards to running the SQL but if the resulting page is refreshed it runs the SQL again. How do I avoid this? If I cange the URL I figure it avoids this problem but dont know how to do this?
http-redirect from the script to your template at (4). context.REQUEST.RESPONSE.redirect(context.4yourPageTeplate.absolute_url())
This answers your question, but I doubt it will solve your problem... you'll just have the same issue at a new address.
Sorry... that was a brain fart. I think I shouldn't post to the list until after I've had my morning coffee. :-) Redirecting after you run the query will work fine. Dylan