[Zope] cookies, dtml and zpt

Jos van der Vleuten Jos.van.der.Vleuten@transiciel.nl
Thu, 3 Apr 2003 12:56:04 +0200


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>cookies, dtml and zpt</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2 FACE=3D"Arial">I have a dtml_method =
(check_latest_news) wich also set a cookie.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">I use this method in a =
pagetemplate:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&lt;span =
tal:replace=3D&quot;structure python: =
container.check_latest_news(here)&quot;/&gt;</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">If i test the method everything is =
working fine, but if i test the template, i receive the following =
error:</FONT>
<BR><B><FONT FACE=3D"Times New Roman">Error Value: global name =
'RESPONSE' is not defined</FONT></B><BR>

<BR><FONT FACE=3D"Times New Roman">Any suggestions what went =
wrong</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=3D2 FACE=3D"Arial Black">Jos van der Vleuten</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Programmeur / Analist</FONT><FONT =
SIZE=3D2 FACE=3D"Arial"><U></U></FONT><U> </U>
<BR><U><FONT COLOR=3D"#0000FF" SIZE=3D1 FACE=3D"Arial"><A =
HREF=3D"http://www.walcheren-online.net" =
TARGET=3D"_blank">http://www.walcheren-online.net</A></FONT></U>
</P>

<P><FONT FACE=3D"Arial Black">UCC </FONT><FONT COLOR=3D"#000000" =
FACE=3D"Arial Black">B</FONT><FONT FACE=3D"Arial Black">usiness =
Solutions</FONT>
</P>

<P><FONT SIZE=3D1 FACE=3D"Arial">Buizerdlaan 2</FONT>
<BR><FONT SIZE=3D1 FACE=3D"Arial">Postbus 1534</FONT>
<BR><FONT SIZE=3D1 FACE=3D"Arial">Nieuwegein </FONT>
<BR><FONT SIZE=3D1 FACE=3D"Arial">Telefoon +31 (0)</FONT><FONT =
COLOR=3D"#000000" SIZE=3D1 FACE=3D"Arial">30 6008600</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D1 FACE=3D"Arial">Fax +31 (0)30 =
6008601</FONT>
<BR><U><FONT COLOR=3D"#0000FF" SIZE=3D1 FACE=3D"Arial"><A =
HREF=3D"http://www.ucc.nl" =
TARGET=3D"_blank">http://www.ucc.nl</A></FONT></U>
</P>

<P><FONT COLOR=3D"#FF0000" FACE=3D"Arial Black">Have a nice day =
!</FONT>
</P>

</BODY>
</HTML>