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
[EMAIL PROTECTED]

----- Original Message -----
From: "Paul Winkler" <[EMAIL PROTECTED]>
To: "Zope mailing list" <[EMAIL PROTECTED]>
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  -  [EMAIL PROTECTED]
| 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 )


_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
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 )

Reply via email to