Was this content cut/pasted from the dtml or is it you retyping, cos you have an extra bracket in your redirect statement. Instead of <dtml-call "RESPONSE.redirect('test-cookie2'))"> try <dtml-call "RESPONSE.redirect('test-cookie2')"> HTH Phil phil.harris@zope.co.uk |>-----Original Message----- |>From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Oleg |>Broytmann |>Sent: Wednesday, February 02, 2000 12:27 PM |>To: Zope Mailing List |>Subject: [Zope] RESPONSE.redirect |> |> |>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. |> |> |>_______________________________________________ |>Zope maillist - Zope@zope.org |>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 ) |>