If I do a <dtml-var DestinationURL>, It prints "http://desktop:8080" However, if I say <dtml-call "RESPONSE.redirect(DestinationURL)">, I wind up at http://desktop:8080/manage_addProduct/AMDAMethod/MethodClass_factory/%3cPyth..., which doesn't exist. Why?
Sam Gendler wrote:
If I do a <dtml-var DestinationURL>, It prints "http://desktop:8080"
However, if I say <dtml-call "RESPONSE.redirect(DestinationURL)">, I wind up at http://desktop:8080/manage_addProduct/AMDAMethod/MethodClass_factory/%3cPyth..., which doesn't exist.
Why?
Basically, what you are trying to do is call dtml from within dtml. You want: <dtml-call "RESPONSE.redirect(_['DestinationURL'])"> Cheers, Bill -- "They laughed at Columbus, they laughed at Fulton, they laughed at the Wright brothers. But they also laughed at Bozo the Clown." -- Carl Sagan
On Tue, Nov 30, 1999 at 04:42:07PM -0800, Sam Gendler wrote:
If I do a <dtml-var DestinationURL>, It prints "http://desktop:8080"
However, if I say <dtml-call "RESPONSE.redirect(DestinationURL)">, I wind up at http://desktop:8080/manage_addProduct/AMDAMethod/MethodClass_factory/%3cPyth..., which doesn't exist.
Why?
DestinationURL is a name used internally by some Zope stuff. There's no clear list of these names anywhere, but I've knocked Zope into infinite redirection loops by using them. Try using a name like "DestinationWebAddress" or something and see if the problem still happens. -- Stephen Pitts smpitts@midsouth.rr.com webmaster - http://www.mschess.org
Stephen Pitts wrote:
On Tue, Nov 30, 1999 at 04:42:07PM -0800, Sam Gendler wrote:
If I do a <dtml-var DestinationURL>, It prints "http://desktop:8080"
However, if I say <dtml-call "RESPONSE.redirect(DestinationURL)">, I wind up at http://desktop:8080/manage_addProduct/AMDAMethod/MethodClass_factory/%3cPyth..., which doesn't exist.
Why?
DestinationURL is a name used internally by some Zope stuff. There's no clear list of these names anywhere, but I've knocked Zope into infinite redirection loops by using them.
Try using a name like "DestinationWebAddress" or something and see if the problem still happens.
I am trying to access the Zope internal stuff. I was using code that was cut and pasted from the original ZClass constructor. When I created a new ZClass and cut and pasted it in fresh, it all started working again. Go figure. --sam
participants (3)
-
Bill Anderson -
Sam Gendler -
Stephen Pitts