[Zope] newbie question: Redirect from Python?
Phil Harris
phil.harris@zope.co.uk
Mon, 27 Nov 2000 21:26:24 -0000
You need to be careful when redirecting from an external Python wotsit.
RESPONSE.redirect raises an exception which can make the transaction get
rolled back.
This seems not to happen when called from dtml but I've seen it happen from
an external Python wotsit.
Note:
My use of wotsit above in no way has a bearing on the new name for the
Python Methods/ZMethods/Script or whatever the hell they are called now. ;)
Phil
phil.harris@zope.co.uk
----- Original Message -----
From: "Paul Winkler" <slinkp23@yahoo.com>
To: "Zope mailing list" <zope@zope.org>
Sent: Monday, November 27, 2000 6:26 PM
Subject: [Zope] newbie question: Redirect from Python?
| I want the user to be sent to a particular URL after calling the
| product's manage_add method. How can I do that?
| The URL I want is REQUEST['URL3'].
|
| I've tried RESPONSE.redirect(REQUEST['URL3']) but that's not it - the
| RESPONSE doesn't seem to exist here.
|
|
| --
| ................. paul winkler ..................
| slinkP arts: music, sound, illustration, design, etc.
| web page: http://www.slinkp.com
| A member of ARMS: http://www.reacharms.com
|
| _______________________________________________
| Zope maillist - Zope@zope.org
| http://lists.zope.org/mailman/listinfo/zope
| ** No cross posts or HTML encoding! **
| (Related lists -
| http://lists.zope.org/mailman/listinfo/zope-announce
| http://lists.zope.org/mailman/listinfo/zope-dev )