[Zope] </dtml-var>?!?!?

David Thibault dthibault@esperion.com
Wed, 6 Feb 2002 17:11:56 -0500


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_01C1AF5B.49FEBAC0
Content-Type: text/plain;
	charset="iso-8859-1"

OK, if I do a "View/Page Source" in netscape on that index_html page, I see
the dtml code...the server is not parsing it out.  What might cause that?
Why would this be something new in 2.5.0?  I did notice that there's now a
"Content type" box in the manage_workspace...

Dave

-----Original Message-----
From: Matthew T. Kromer [mailto:matt@zope.com]
Sent: Wednesday, February 06, 2002 3:29 PM
To: 'zope@zope.org'
Subject: Re: [Zope] </dtml-var>?!?!?


Hi Dave,

Using your example, I was not able to reproduce your problem.  I did not 
see any new tags get created in the editor, nor did I fail to ese the 
"If this test works this should print" message.

What happens when you view the frame source of your page that omits "if 
this test works this should print?"

Is it there with some kind of tag around it?

Did you make any changes to standard_html_header?


David Thibault wrote:

> Hello all,
>
> This is my first post.  I've noticed a couple of weird things in 
> 2.5.0.  First off, the management editor keeps insisting on putting 
> closing tags in for <dtml-var> (like </dtml-var>) after I click "Save 
> Changes" on a DTML doc. 
>
> Also, for some reason, the <dtml-var someDTMLMethod> doesn't work.  
> Here's an example:
>
> index_html is a dtml document that contains the following (note the 
> dotted lines are  not part of the code, they just delimit it for the 
> purposes of this email):
>
> ------------------------------------
> <dtml-var standard_html_header>
> Testing...<br>
> <dtml-var testDtmlMethod><br>
> Done test!<br>
> <dtml-var standard_html_footer>
> ------------------------------------
>
> and testDtmlMethod is a DTML Method that contains:
> -----------------------
> IF THE TEST WORKS THIS SHOULD PRINT!!!
> -----------------------
>
> When you view index_html in the browser, it looks like this:
> -----------------------
> Testing...
>
> Done test!
> -----------------------
>
> But it should print this:
>
> -----------------------
> Testing...
> IF THE TEST WORKS THIS SHOULD PRINT!!!
> Done test!
> -----------------------
>
> Am I missing some new "Feature" in 2.5.0?
>
> Help!
> Thanks in advance,
> Dave Thibault
>


-- 
Matt Kromer
Zope Corporation  http://www.zope.com/ 




_______________________________________________
Zope maillist  -  Zope@zope.org
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-dev )

------_=_NextPart_001_01C1AF5B.49FEBAC0
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.2654.45">
<TITLE>RE: [Zope] &lt;/dtml-var&gt;?!?!?</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>OK, if I do a &quot;View/Page Source&quot; in =
netscape on that index_html page, I see the dtml code...the server is =
not parsing it out.&nbsp; What might cause that?&nbsp; Why would this =
be something new in 2.5.0?&nbsp; I did notice that there's now a =
&quot;Content type&quot; box in the manage_workspace...</FONT></P>

<P><FONT SIZE=3D2>Dave</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Matthew T. Kromer [<A =
HREF=3D"mailto:matt@zope.com">mailto:matt@zope.com</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Wednesday, February 06, 2002 3:29 PM</FONT>
<BR><FONT SIZE=3D2>To: 'zope@zope.org'</FONT>
<BR><FONT SIZE=3D2>Subject: Re: [Zope] &lt;/dtml-var&gt;?!?!?</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Hi Dave,</FONT>
</P>

<P><FONT SIZE=3D2>Using your example, I was not able to reproduce your =
problem.&nbsp; I did not </FONT>
<BR><FONT SIZE=3D2>see any new tags get created in the editor, nor did =
I fail to ese the </FONT>
<BR><FONT SIZE=3D2>&quot;If this test works this should print&quot; =
message.</FONT>
</P>

<P><FONT SIZE=3D2>What happens when you view the frame source of your =
page that omits &quot;if </FONT>
<BR><FONT SIZE=3D2>this test works this should print?&quot;</FONT>
</P>

<P><FONT SIZE=3D2>Is it there with some kind of tag around it?</FONT>
</P>

<P><FONT SIZE=3D2>Did you make any changes to =
standard_html_header?</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>David Thibault wrote:</FONT>
</P>

<P><FONT SIZE=3D2>&gt; Hello all,</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; This is my first post.&nbsp; I've noticed a =
couple of weird things in </FONT>
<BR><FONT SIZE=3D2>&gt; 2.5.0.&nbsp; First off, the management editor =
keeps insisting on putting </FONT>
<BR><FONT SIZE=3D2>&gt; closing tags in for &lt;dtml-var&gt; (like =
&lt;/dtml-var&gt;) after I click &quot;Save </FONT>
<BR><FONT SIZE=3D2>&gt; Changes&quot; on a DTML doc. </FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; Also, for some reason, the &lt;dtml-var =
someDTMLMethod&gt; doesn't work.&nbsp; </FONT>
<BR><FONT SIZE=3D2>&gt; Here's an example:</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; index_html is a dtml document that contains the =
following (note the </FONT>
<BR><FONT SIZE=3D2>&gt; dotted lines are&nbsp; not part of the code, =
they just delimit it for the </FONT>
<BR><FONT SIZE=3D2>&gt; purposes of this email):</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; ------------------------------------</FONT>
<BR><FONT SIZE=3D2>&gt; &lt;dtml-var standard_html_header&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; Testing...&lt;br&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &lt;dtml-var =
testDtmlMethod&gt;&lt;br&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; Done test!&lt;br&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &lt;dtml-var standard_html_footer&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; ------------------------------------</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; and testDtmlMethod is a DTML Method that =
contains:</FONT>
<BR><FONT SIZE=3D2>&gt; -----------------------</FONT>
<BR><FONT SIZE=3D2>&gt; IF THE TEST WORKS THIS SHOULD PRINT!!!</FONT>
<BR><FONT SIZE=3D2>&gt; -----------------------</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; When you view index_html in the browser, it =
looks like this:</FONT>
<BR><FONT SIZE=3D2>&gt; -----------------------</FONT>
<BR><FONT SIZE=3D2>&gt; Testing...</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; Done test!</FONT>
<BR><FONT SIZE=3D2>&gt; -----------------------</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; But it should print this:</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; -----------------------</FONT>
<BR><FONT SIZE=3D2>&gt; Testing...</FONT>
<BR><FONT SIZE=3D2>&gt; IF THE TEST WORKS THIS SHOULD PRINT!!!</FONT>
<BR><FONT SIZE=3D2>&gt; Done test!</FONT>
<BR><FONT SIZE=3D2>&gt; -----------------------</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; Am I missing some new &quot;Feature&quot; in =
2.5.0?</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; Help!</FONT>
<BR><FONT SIZE=3D2>&gt; Thanks in advance,</FONT>
<BR><FONT SIZE=3D2>&gt; Dave Thibault</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>-- </FONT>
<BR><FONT SIZE=3D2>Matt Kromer</FONT>
<BR><FONT SIZE=3D2>Zope Corporation&nbsp; <A =
HREF=3D"http://www.zope.com/" =
TARGET=3D"_blank">http://www.zope.com/</A> </FONT>
</P>
<BR>
<BR>
<BR>

<P><FONT =
SIZE=3D2>_______________________________________________</FONT>
<BR><FONT SIZE=3D2>Zope maillist&nbsp; -&nbsp; Zope@zope.org</FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"http://lists.zope.org/mailman/listinfo/zope" =
TARGET=3D"_blank">http://lists.zope.org/mailman/listinfo/zope</A></FONT>=

<BR><FONT SIZE=3D2>**&nbsp;&nbsp; No cross posts or HTML =
encoding!&nbsp; **</FONT>
<BR><FONT SIZE=3D2>(Related lists - </FONT>
<BR><FONT SIZE=3D2>&nbsp;<A =
HREF=3D"http://lists.zope.org/mailman/listinfo/zope-announce" =
TARGET=3D"_blank">http://lists.zope.org/mailman/listinfo/zope-announce</=
A></FONT>
<BR><FONT SIZE=3D2>&nbsp;<A =
HREF=3D"http://lists.zope.org/mailman/listinfo/zope-dev" =
TARGET=3D"_blank">http://lists.zope.org/mailman/listinfo/zope-dev</A> =
)</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C1AF5B.49FEBAC0--