Oops. Sorry. I gotta start drinkin' coffee again. Someone else already suggested using absolute_url, which is probably the right answer. I have a bunch of redirects on a site I built and they all look like this (python script): container.REQUEST.RESPONSE.redirect(container.sub.index_html.absolute_url()+ '?sub_page=company&ctnt=co_co') Since you aren't generating any HTML, there is no advantage to using DTML. Just use python scripts.
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Dennis Allison Sent: Monday, August 26, 2002 10:15 AM To: allison@sumeru.stanford.EDU; creiman@kefta.com Cc: zope@zope.org Subject: RE: [Zope] redirect strangeness ...
Thanks Charlie, but it's the other side of the dtml-if that's failing. The side that uses marshallwormvar() works fine. It's the unadorned redirect to index_html that rises the exception.