[Zope] Change URL after SQL statement execution?

Geir Bækholt lists at elvix.com
Wed Nov 19 05:20:16 EST 2003


On  Wed, 19 Nov 2003 10:03:43 +0000 GMT 
RI Dunfey asked the Zope mailinglist about the following:
  

>>From my python script I call the SQL using:

> context.MySQLStatement(first_name=First, last_name=Last)

> 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())
:)
-- 
__________________________________________________________________

 Geir Bækholt    ·   Interaction Architect   ·    Plone Solutions

 Development · Training · Support · http://www.plonesolutions.com
__________________________________________________________________






More information about the Zope mailing list