[Zope] variable assignment

Micheál Healy michael.healy@engitech.ie
Tue, 22 Oct 2002 13:52:41 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0027_01C279D2.4A8023C0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

I have the following code snippet:

  <dtml-in =
expr=3D"view.sql_query_current_windows_version(p_custName=3Dp_custName, =
p_inventory=3Dp_inventory)">
      <dtml-var current_windows_version>
  </dtml-in>

I'd like to be able to check the value of 'current_windows_version' =
(which is sel in the ZSQL method) later in the code.  Is there any way =
of assigning this value to a 'global' variable which I could read later?

TIA,

Miche=E1l Healy
------=_NextPart_000_0027_01C279D2.4A8023C0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have the following code =
snippet:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; &lt;dtml-in=20
expr=3D"view.sql_query_current_windows_version(p_custName=3Dp_custName,=20
p_inventory=3Dp_inventory)"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&lt;dtml-var=20
current_windows_version&gt;<BR>&nbsp; &lt;/dtml-in&gt;<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I'd like to be able to&nbsp;check =
the&nbsp;value of=20
'current_windows_version'&nbsp;(which is sel in the ZSQL method) later =
in the=20
code.&nbsp; Is there any way of assigning this value to a 'global' =
variable=20
which I could read later?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>TIA,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Miche=E1l =
Healy</DIV></FONT></BODY></HTML>

------=_NextPart_000_0027_01C279D2.4A8023C0--