[Zope] Re: sub-object syntax

Tom Neff tneff@bigfoot.com
Tue, 8 Feb 2000 10:11:44 -0500


Jim Fulton <jim@digicool.com> wrote:
> I'm not sure what you are refering to.  We've considered for some time
> allowing something like:
> 
>   <dtml-var a/b>
> 
> meaning "insert sub-object b of object a".
> 
> This is a good idea, but we haven't agreed on the semantics
> of the '/'.  Some people assume attribute access. Others expect
> URL traversal, along the lines of what the publisher does.
> Others want URL traversal *and* publisher-style calling.

So make that a parameter in the dtml-var call:

	<dtml-var a/b Semantics=url>

and follow up with some shortcut tags:

	<dtml-var-url a/b>
or	<dtml-url a/b>

etc.