[Zope] RESPONSE.redirect

Oleg Broytmann phd@phd.russ.ru
Wed, 2 Feb 2000 12:26:32 +0000 (GMT)


Hello!

   Is it a bug or I am doing something wrong? I am trying to create DTML
Document test-cookie1:

<dtml-call "RESPONSE.setCookie('jwt_test', 'JWT Test')">
<dtml-call "RESPONSE.redirect('test-cookie2'))">

<dtml-var standard_html_header>
<h2><dtml-var title_or_id></h2>
<p>
   Please wait...
</p>
<dtml-var standard_html_footer>

   and when I press "Change" Zope instead of saveing the Method CALLS it!
Oops!!!
   I think Zope is trying to compile the method and while compiling really
does the redirect.

   I removed call to RESPONSE.redirect, and was able to save the method,
but how I put the redirect back?

Zope version: Zope 2.1.3 (source release, python 1.5.2, linux2)
Python version: 1.5.2 (#1, Jan 17 2000, 18:02:04) [GCC 2.7.2.3]

   Running under Apache in PCGI mode (not ZServer), via mod_pcgi2, but
switching to Zope.cgi didn't help, so it is a problem with Zope (or me :)

Oleg.
---- 
    Oleg Broytmann      Foundation for Effective Policies      phd@phd.russ.ru
           Programmers don't die, they just GOSUB without RETURN.