[Zope-dev] request.set
Adrian Hungate
ahungate@acucorp.com
Mon, 11 Jun 2001 05:17:12 -0700
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C0F270.75427CA0
Content-Type: text/plain;
charset="iso-8859-1"
What this does is set a key/value pair in the REQUEST variable (Which is a
sort of python dictionary, just with extra smarts).
DTML will not let you do <dtml-call "REQUEST['record_ids']=0"> for security
reasons, so the REQUEST variable has the .set method which performs the same
function.
Hope this helps
Adrian...
-----Original Message-----
From: Derek Quayle [mailto:derek.quayle@b-online.com.au]
Sent: Monday, 11 June 2001 05:47
To: zope-dev@zope.org
Subject: [Zope-dev] request.set
I am fairly new to Zope and still coming to grips with it. Could
someone please explain how this piece of code works
<!--#call "REQUEST.set('record_ids', 0)"-->
Cheers
wabirdman
------_=_NextPart_001_01C0F270.75427CA0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!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.2650.12">
<TITLE>RE: [Zope-dev] request.set</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=3D2>What this does is set a key/value pair in the REQUEST =
variable (Which is a sort of python dictionary, just with extra =
smarts).</FONT></P>
<P><FONT SIZE=3D2>DTML will not let you do <dtml-call =
"REQUEST['record_ids']=3D0"> for security reasons, so the =
REQUEST variable has the .set method which performs the same =
function.</FONT></P>
<P><FONT SIZE=3D2>Hope this helps</FONT>
</P>
<P><FONT SIZE=3D2>Adrian...</FONT>
</P>
<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Derek Quayle [<A =
HREF=3D"mailto:derek.quayle@b-online.com.au">mailto:derek.quayle@b-onlin=
e.com.au</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Monday, 11 June 2001 05:47</FONT>
<BR><FONT SIZE=3D2>To: zope-dev@zope.org</FONT>
<BR><FONT SIZE=3D2>Subject: [Zope-dev] request.set</FONT>
</P>
<BR>
<P><FONT SIZE=3D2>I am fairly new to Zope and still coming to grips =
with it. Could</FONT>
<BR><FONT SIZE=3D2>someone please explain how this piece of code =
works</FONT>
</P>
<P><FONT SIZE=3D2> <!--#call "REQUEST.set('record_ids', =
0)"--></FONT>
</P>
<P><FONT SIZE=3D2>Cheers</FONT>
<BR><FONT SIZE=3D2>wabirdman</FONT>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01C0F270.75427CA0--