[Zope] <dtml-tree> question

Sean Robertson webolutionary@webolutionary.com
Sat, 21 Aug 1999 22:32:46 -0400


Replacing the spaces with "%20"s would solve that problem, wouldn't it?

----- Original Message ----- 
From: Tim Wilson <wilson@chemsun.chem.umn.edu>
To: Michel Pelletier <michel@digicool.com>
Cc: Zope Listserv <zope@zope.org>
Sent: Saturday, August 21, 1999 10:23 PM
Subject: Re: [Zope] <dtml-tree> question


> On Sat, 21 Aug 1999, Michel Pelletier wrote:
> 
> > You're URLs apear to contain illegal whitespace that is probably
> > interfering with the tree tags ability to find out where it is.  If you
> > hover your mouse over the link you mentioned, you will see all kinds of
> > whitespace in the URL.
> 
> I noticed that too.
> 
> > I suggest editing your DTML in the tree tag so that the whitespace goes
> > away.  Sometimes you have to sacrifice the clarity of your DTML for
> > well-formed results.
> 
> I lifted the DTML syntax for the tree from the ZBook tutorial. Here's my
> DTML:
> 
> <SPAN CLASS=tree>
>   <!--#tree particle branches_expr="objectValues(['Folder', 'DTML
> Document'])" sort=id-->
>     <!--#if expr="meta_type == 'Folder'"-->
>       <!--#if tree-item-expanded-->
>         <IMG SRC="<!--#var SCRIPT_NAME-->/HelpSys/hs_obook" ALIGN="TOP"
> BORDER="0" width=16 height=16>
>       <!--#else-->
>         <IMG SRC="<!--#var SCRIPT_NAME-->/HelpSys/hs_cbook" ALIGN="TOP"
> BORDER="0" width=16 height=16>
>       <!--#/if-->
>       <!--#var title_or_id-->
>     <!--#else-->
>       <IMG SRC="<!--#var SCRIPT_NAME-->/HelpSys/hs_dnode" ALIGN="TOP"
> BORDER="0" width=16 height=16>
>       <A HREF="<!--#var "particle.absolute_url()"-->/
>          <!--#var tree-item-url-->?
>          <!--#if tree-s-->tree-s=<!--#var tree-s--><!--#/if-->
>          <!--#if tree-e-->&tree-e=<!--#var tree-e--><!--#/if-->
>          <!--#if tree-c-->&tree-c=<!--#var tree-c--><!--#/if-->">
>       <!--#var title_or_id--></a>
>     <!--#/if-->
>   <!--#/tree-->
> </SPAN>
> 
> I don't see any extra whitespace in there. BTW, I haven't figured out the
> purpose of <!--var SCRIPT_NAME>. To what does that refer?
> 
> Thanks for hints. I'll keep looking.
> 
> -Tim
> 
> --
> Timothy Wilson       | "The faster you  |  Check out:
> Henry Sibley H.S.    |  go, the shorter | http://slashdot.org/
> W. St. Paul, MN, USA |  you are."       | http://linux.com/
> wilson@chem.umn.edu  |       -Einstein  | http://www.mn-linux.org/
> 
> 
> _______________________________________________
> 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 )