[Zope] Addressing directories below current
Alexander Staubo
alex@mop.no
Mon, 19 Jul 1999 07:51:58 +0200
You're not quite at ease with this acquisition thing yet, are you? :-)
First of all, that should be
<!--#with below-->
<!--#var fragment-->
<!--#/with-->
(you can also refer to the object as "below.fragment", but this means
something slightly different.)
Furthermore a generic solution would be
<!--#with "PARENTS[1]"-->
<!--#var fragment-->
<!--#/with-->
Note that unless you're seeking to explicitly avoiding referring to
something in the same directory (for example, the above could be used to
build accumulative navigation bars), acquisition solves the problem of
referring to up-level objects.
--
Alexander Staubo http://www.mop.no/~alex/
"What the hell, he thought, you're only young once, and threw
himself out of the window. That would at least keep the element of
surprise on his side."
--Douglas Adams, _The Hitchhiker's Guide to the Galaxy_
>-----Original Message-----
>From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
>Graham Chiu
>Sent: 19. juli 1999 06:43
>To: zope@zope.org
>Subject: [Zope] Addressing directories below current
>
>
>
>I would like to cut the clutter in my directories, so have
>tried storing
>fragments of sql statements in lower directories.
>
>Now if the dtml is in the current directory it works fine.
>
>eg
>
>update main where
>
><!--#var fragment-->
>
>but if I try this
>
><!--#var below/fragment-->
>
>it likes it not.
>
>
>-------
>Regards, Graham Chiu
>gchiu<at>compkarori.co.nz
>
>_______________________________________________
>Zope maillist - Zope@zope.org
>http://www.zope.org/mailman/listinfo/zope
>
>(For developer-specific issues, use the companion list,
>zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
>