Internal redirects only work when the target is another page of your own site -- I don't see how you could use it to redirect to Paypal.
Barry ----- Original Message ---- From: Roger Demetrescu <[EMAIL PROTECTED]> To: [email protected] Sent: Friday, November 9, 2007 4:00:58 PM Subject: [TurboGears] Re: passing on post vars with raise redirect On Nov 9, 2007 5:45 PM, iain duncan <[EMAIL PROTECTED]> wrote: > > Hi gurus, I'm a wee bit stumped here. When we use raise redirect, I > guess the user gets redirected but any get/post vars don't go with them, > which makes sense. Is it possible to force those to get passed on too? > > Basically I'm doing a checkout script where a form has to be submitted > to paypal and I'd like to hijack the submission process to keep a record > of the submission. I thought I'd have the final form submit to my method > and then redirect to paypal, but not sure whether that will work after > all. I think cherrypy.InternalRedirect is what you want... Take a look at turbogears/identity/exceptions.py to see how it is used by TG (class IdentityFailure) > Thanks > Iain HTH :) Roger __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

