[Zope] logic problem

technology technology@mylinuxisp.com
Sun, 20 Feb 2000 11:31:01 -0600


This is a multi-part message in MIME format.

------=_NextPart_000_0007_01BF7B95.F7332150
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

oh by the way you guys have been helping in an excellent way this week. =
thanks so much.

When I use this dtml; if bid, bpurchaseyear, and bdescription are all =
true. the string ends up being set to
'id,description'

It is skipping the bpurchaseyear or taking 'puchaseyear' it out of the =
string. I am not sure what is happening.


<dtml-if bid>
<dtml-call "manage_changeProperties(qstring =3D 'id')">
</dtml-if>

<dtml-if bpurchaseyear>
<dtml-call "manage_changeProperties(testvalue =3D qstring)">
     <dtml-if bid>
     <dtml-call "manage_changeProperties(qstring =3D testvalue + ',' + =
'puchaseyear')">
     <dtml-else>
     <dtml-call "manage_changeProperties(qstring =3D 'purchaseyear')">
     </dtml-if>
</dtml-if>
<dtml-call "manage_changeProperties(testvalue =3D qstring)">
<dtml-if bdescription>
     <dtml-if "bid or bpurchaseyear">
     <dtml-call "manage_changeProperties(qstring =3D testvalue + ',' + =
'description')">
     <dtml-else>
     <dtml-call "manage_changeProperties(qstring =3D testvalue + =
'description')">
     </dtml-if>
</dtml-if>


------=_NextPart_000_0007_01BF7B95.F7332150
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 content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>oh by the way you guys have been =
helping in an=20
excellent way this week. thanks so much.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>When I use this dtml; if bid, =
bpurchaseyear, and=20
bdescription are all true. the string ends up being set to</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>'id,description'</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>It is skipping the bpurchaseyear or =
taking=20
'puchaseyear' it out of the string. I am not sure what is=20
happening.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;dtml-if bid&gt;<BR>&lt;dtml-call=20
"manage_changeProperties(qstring =3D =
'id')"&gt;<BR>&lt;/dtml-if&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;dtml-if =
bpurchaseyear&gt;<BR>&lt;dtml-call=20
"manage_changeProperties(testvalue =3D =
qstring)"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;dtml-if bid&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp; &lt;dtml-call=20
"manage_changeProperties(qstring =3D testvalue + ',' +=20
'puchaseyear')"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;dtml-else&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp; &lt;dtml-call=20
"manage_changeProperties(qstring =3D=20
'purchaseyear')"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/dtml-if&gt;<BR>&lt;/dtml-if&gt;<BR>&lt;dtml-call=20
"manage_changeProperties(testvalue =3D qstring)"&gt;<BR>&lt;dtml-if=20
bdescription&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp; &lt;dtml-if "bid or=20
bpurchaseyear"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp; &lt;dtml-call=20
"manage_changeProperties(qstring =3D testvalue + ',' +=20
'description')"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;dtml-else&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp; &lt;dtml-call=20
"manage_changeProperties(qstring =3D testvalue +=20
'description')"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/dtml-if&gt;<BR>&lt;/dtml-if&gt;<BR></FONT></DIV></BODY></HTML>

------=_NextPart_000_0007_01BF7B95.F7332150--