[Zope] Re: images in trees. Any solution??
Gilles lavaux
Gilles lavaux" <gilles.lavaux@esrin.esa.it
Tue, 12 Oct 1999 11:36:44 +0200
Hello,
I am moving stuff from zope1 to zope2 and had this problem to:
Inside a tree tag displaying an image with <dtml-var image_name> failed
but with <dtml-var "image_name"> it works.
I would like to know what is the normal behavious of the tree tag, shall I
change my code to add the "" arround the image name?? I display a lot of
small documents inside my tree , thoses document containing images
(dot,etc..) so it's a lot of modification to do.
Thanks for any info
Gilles Lavaux
-----Original Message-----
From: Ethan Fremen <mindlace@majordomo.net>
To: Martijn Pieters <mj@antraciet.nl>
Cc: zope@zope.org <zope@zope.org>
Date: Friday, September 24, 1999 12:02 PM
Subject: Re: [Zope] images in trees.
>Martijn Pieters wrote:
>> On DTML Documents, id is a method. You are comparing a method object to a
>> string, so this will always turn out to be false. Test for id() ==
'fozcoa'.
>
>Thanks, Martijn, that works.
>however, if I now run this it crashes:
><dtml-tree content branches_expr="objectValues(['Folder', 'DTML
>Document'])" sort=order >
><dtml-if expr="meta_type == 'Folder'">
> <dtml-var title_or_id>
><dtml-else>
> <dtml-if expr="id() == 'cnart'"><dtml-var cnartgif></dtml-if>
>
>But I know it works because if I replace <dtml-var cnartgif> with boo
>the boo shows up. The image cnartgif is in the content folder.
>Here's the last 3 items in the traceback:
>
> File /usr/local/src/Zope-2.0.0-src/lib/python/TreeDisplay/TreeTag.py,
>line 250, in tpRender
> (Object: ElementWithAttributes)
> File
>/usr/local/src/Zope-2.0.0-src/lib/python/TreeDisplay/TreeTag.py, line
>491, in tpRenderTABLE
> (Object: ElementWithAttributes)
> (Info: (['AAAAAAAAALc=', []], {'childless_decoration': '', 'id':
>'tpId', 'branches_expr': <method Eval.eval of Eval instance at 85bc0e8>,
>'sort': 'order', 'url': 'tpURL', 'name': 'content', '': 'content'},
>[['AAAAAAAAALc=', []]], [['AAAAAAAAALc=', []]]))
> File
>/usr/local/src/Zope-2.0.0-src/lib/python/TreeDisplay/TreeTag.py, line
>408, in tpRenderTABLE
> (Object: cnart)
> AttributeError: __call__
>
>I have no idea what a 'childless decoration' is.
>--
>~mindlace
>
>_______________________________________________
>Zope maillist - Zope@zope.org
>http://www.zope.org/mailman/listinfo/zope
>
>(To receive general Zope announcements, see:
>http://www.zope.org/mailman/listinfo/zope-announce
>
>For developer-specific issues, zope-dev@zope.org -
>http://www.zope.org/mailman/listinfo/zope-dev )
>