[Zope] cookies, dtml and zpt

Jos van der Vleuten Jos.van.der.Vleuten@transiciel.nl
Thu, 3 Apr 2003 13:15:01 +0200


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

<P><FONT SIZE=2>Sorry for the html-mail, i have changed outlook so i hope it is over now...</FONT>
</P>

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

<P><FONT SIZE=2>Any suggestions what went wrong</FONT>
</P>

<P><FONT SIZE=2>&gt; Jos van der Vleuten</FONT>
<BR><FONT SIZE=2>Programmeur / Analist </FONT>
<BR><FONT SIZE=2>&gt; <A HREF="http://www.walcheren-online.net" TARGET="_blank">http://www.walcheren-online.net</A></FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; UCC Business Solutions</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Buizerdlaan 2</FONT>
<BR><FONT SIZE=2>&gt; Postbus 1534</FONT>
<BR><FONT SIZE=2>&gt; Nieuwegein </FONT>
<BR><FONT SIZE=2>&gt; Telefoon +31 (0)30 6008600</FONT>
<BR><FONT SIZE=2>&gt; Fax +31 (0)30 6008601</FONT>
<BR><FONT SIZE=2>&gt; <A HREF="http://www.ucc.nl" TARGET="_blank">http://www.ucc.nl</A></FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Have a nice day !</FONT>
</P>

</BODY>
</HTML>