[Zope] How do reset a dtml-var
McDonnell, Larry
lmcdonnell@protonenergy.com
Mon, 3 Jun 2002 13:47:34 -0400
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_01C20B26.BE15AEB0
Content-Type: text/plain;
charset="iso-8859-1"
Hi,
Thanks for the quick responses, Scott this works great thanks again.
-----Original Message-----
From: Meilicke, Scott [mailto:scott.meilicke@intp.com]
Sent: Monday, June 03, 2002 1:11 PM
To: McDonnell, Larry; 'Zope@Zope. Org' (E-mail)
Subject: RE: [Zope] How do reset a dtml-var
variables set by dtml-let are only in the namespace in between the dtml-let
tags. When you close the tag, the variables are removed. If you can't use
dtml-let tags, you can push the variable into REQUEST with:
(not tested)
<dtml-call "REQUEST.set('revision','%')">
-Scott
-----Original Message-----
From: McDonnell, Larry [ mailto:lmcdonnell@protonenergy.com
<mailto:lmcdonnell@protonenergy.com> ]
Sent: Monday, June 03, 2002 9:57 AM
To: 'Zope@Zope. Org' (E-mail)
Subject: [Zope] How do reset a dtml-var
Hi,
I am trying to check to see if the dtml-var revision is set to a null and if
it is I want to set it to "%" as a sql wildcard. This is my test.
<dtml-if expr="revision==''">
<p><dtml-var revision>test if1</p>
<dtml-let revision="'%'">
<p><dtml-var revision>test if2</p>
</dtml-let>
<p><dtml-var revision>test if3</p>
</dtml-if>
Here are my results.
test if1
%test if2
test if3
How come the variable is not set after I leave dtml-let statement? Thanks.
Larry McDonnell
Proton Energy Systems
50 Inwood Rd.
Rocky Hill, CT 06067
(860) 571-6533 ext. 531
Email:lmcdonnell@protonenergy.com
www.protonenergy.com
_______________________________________________
Zope maillist - Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
<http://lists.zope.org/mailman/listinfo/zope>
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
<http://lists.zope.org/mailman/listinfo/zope-announce>
http://lists.zope.org/mailman/listinfo/zope-dev
<http://lists.zope.org/mailman/listinfo/zope-dev> )
The information contained in this email message may be privileged and is
confidential information intended only for the use of the recipient or any
employee or agent responsible for delivering it to the intended recipient.
Any unauthorized use, distribution or copying of this information is
strictly prohibited and may be unlawful. If you have received this
communication in error, please notify the sender immediately and destroy the
original message and all attachments from your electronic files.
------_=_NextPart_001_01C20B26.BE15AEB0
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>RE: [Zope] How do reset a dtml-var</TITLE>
<META content="MSHTML 5.00.3315.2870" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=263564717-03062002>Hi,</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=263564717-03062002></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=263564717-03062002>Thanks
for the quick responses, Scott this works great thanks
again.</SPAN></FONT></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Meilicke, Scott
[mailto:scott.meilicke@intp.com]<BR><B>Sent:</B> Monday, June 03, 2002 1:11
PM<BR><B>To:</B> McDonnell, Larry; 'Zope@Zope. Org'
(E-mail)<BR><B>Subject:</B> RE: [Zope] How do reset a
dtml-var<BR><BR></DIV></FONT>
<P><FONT size=2>variables set by dtml-let are only in the namespace in between
the dtml-let tags. When you close the tag, the variables are
removed. If you can't use dtml-let tags, you can push the variable into
REQUEST with:</FONT></P>
<P><FONT size=2>(not tested)</FONT> </P>
<P><FONT size=2><dtml-call "REQUEST.set('revision','%')"></FONT> </P>
<P><FONT size=2>-Scott</FONT> </P>
<P><FONT size=2>-----Original Message-----</FONT> <BR><FONT size=2>From:
McDonnell, Larry [<A
href="mailto:lmcdonnell@protonenergy.com">mailto:lmcdonnell@protonenergy.com</A>]</FONT>
<BR><FONT size=2>Sent: Monday, June 03, 2002 9:57 AM</FONT> <BR><FONT
size=2>To: 'Zope@Zope. Org' (E-mail)</FONT> <BR><FONT size=2>Subject: [Zope]
How do reset a dtml-var</FONT> </P><BR>
<P><FONT size=2>Hi,</FONT> </P>
<P><FONT size=2>I am trying to check to see if the dtml-var revision is set to
a null and if</FONT> <BR><FONT size=2>it is I want to set it to "%" as a sql
wildcard. This is my test.</FONT> </P>
<P><FONT size=2><dtml-if expr="revision==''"></FONT> <BR><FONT
size=2><p><dtml-var revision>test if1</p></FONT> <BR><FONT
size=2><dtml-let revision="'%'"></FONT> <BR><FONT
size=2><p><dtml-var revision>test if2</p></FONT> <BR><FONT
size=2></dtml-let></FONT> <BR><FONT size=2><p><dtml-var
revision>test if3</p></FONT> <BR><FONT size=2></dtml-if></FONT>
</P>
<P><FONT size=2>Here are my results.</FONT> <BR><FONT size=2>test if1</FONT>
<BR><FONT size=2>%test if2</FONT> <BR><FONT size=2>test if3</FONT> </P>
<P><FONT size=2>How come the variable is not set after I leave dtml-let
statement? Thanks.</FONT> </P>
<P><FONT size=2>Larry McDonnell</FONT> </P>
<P><FONT size=2>Proton Energy Systems</FONT> <BR><FONT size=2>50 Inwood
Rd.</FONT> <BR><FONT size=2>Rocky Hill, CT 06067</FONT> <BR><FONT size=2>(860)
571-6533 ext. 531</FONT> <BR><FONT
size=2>Email:lmcdonnell@protonenergy.com</FONT> <BR><FONT
size=2>www.protonenergy.com</FONT> </P><BR><BR>
<P><FONT size=2>_______________________________________________</FONT>
<BR><FONT size=2>Zope maillist - Zope@zope.org</FONT> <BR><FONT
size=2><A href="http://lists.zope.org/mailman/listinfo/zope"
target=_blank>http://lists.zope.org/mailman/listinfo/zope</A></FONT> <BR><FONT
size=2>** No cross posts or HTML encoding! **</FONT>
<BR><FONT size=2>(Related lists - </FONT><BR><FONT size=2> <A
href="http://lists.zope.org/mailman/listinfo/zope-announce"
target=_blank>http://lists.zope.org/mailman/listinfo/zope-announce</A></FONT>
<BR><FONT size=2> <A
href="http://lists.zope.org/mailman/listinfo/zope-dev"
target=_blank>http://lists.zope.org/mailman/listinfo/zope-dev</A> )</FONT>
<BR><FONT size=2>The information contained in this email message may be
privileged and is confidential information intended only for the use of the
recipient or any employee or agent responsible for delivering it to the
intended recipient. Any unauthorized use, distribution or copying of
this information is strictly prohibited and may be unlawful. If you have
received this communication in error, please notify the sender immediately and
destroy the original message and all attachments from your electronic
files.</FONT></P></BLOCKQUOTE></BODY></HTML>
------_=_NextPart_001_01C20B26.BE15AEB0--