RE: [Zope] Addressing directories below current
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 )
In article <B059671903C6D211A0D500C0F0301C79139C54@kubrick.mop.no>, Alexander Staubo <alex@mop.no> writes
You're not quite at ease with this acquisition thing yet, are you? :-)
First of all, that should be
<!--#with below--> <!--#var fragment--> <!--#/with-->
Thanks. I guess my sparse ( 1 lecture a week for a single semester on PDP basic over 20 years ago in my first year at medical school ) formal computer training has ill equipped me for Zope! At least I don't have to still submit my punch cards to the computer centre each week. ------- Regards, Graham Chiu gchiu<at>compkarori.co.nz
participants (2)
-
Alexander Staubo -
Graham Chiu