[Zope] <dtml-var> html_quote

Jonothan Farr jfarr@real.com
Thu, 16 Mar 2000 12:49:14 -0800


testProgram should *call* the showImage method, otherwise you just insert a
string representation of it.

<dtml-var "test.showImage(_.None, _)">

-jfarr

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi! I'm a signature virus.
Copy me into your .sig to join the fun!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

----- Original Message -----
From: Chien-pin Wang <cpw@suprize.com>
To: <zope@zope.org>
Sent: Wednesday, March 15, 2000 10:18 PM
Subject: [Zope] <dtml-var> html_quote


> Hi,
>
>     Suppose the following folder/Obj structure:
>
> Zope Root
>     - test
>                         showImage     (DTML Document)
>         - image
>     testImage (image object)
>     - test2
>                         testProgram   (DTML Document)
>
>     showImage contains one line of code:
>        <A HREF="test"><dtml-var "image.testImage"></A>
>     that shows the testImage properly alone. But if I put
>     <dtml-var "test.showImage"> in testProgram (in test2),
>     I got all "<" as "&lt;" and the ugly code like the
>     following was returned intead of the image with link.
>
> &lt;A HREF=&quot;test.html&quot;&gt;&lt;dtml-var
> &quot;testImg&quot;&gt;&lt;/A&gt;
>
>     I have tried the following but none works out:
> - Use DTML Method instead of DTML Document to hold
>   showImage
> - Use "/" instead of "." to point to objects
> - Use single quote or no quote instead of double quotes
>
>     Please advise the proper way to resolve this annoying issue.
>     Thanks a lot!
>
> Chien-pin
>
> _______________________________________________
> 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 )
>