[ZPT] nested access to object data

Chris Withers chrisw at nipltd.com
Thu May 8 16:34:18 EDT 2003


Andreas Jung wrote:
> 
> 
> --On Donnerstag, 8. Mai 2003 15:08 Uhr +0100 Chris Withers 
> <chrisw at nipltd.com> wrote:
> 
>> Andreas Jung wrote:
>>
>>>
>>>> Then call it as define="foo here/getFoo" content="foo/key".
>>>>
>>>
>>> But I want "here/getFoo/key" :-)
>>
>>
>> If that means that getFood needs to be called, then you can't do it.
>>
>> And I think it's important that stays as it is.
>>
>> ZPT has very clearly defined rules about when things get called.
> 
> 
> Maybe but "here/getfookey" looks much smarter and cleaner than using
> something with "python: here.getFoo('key')" or so :-)

I think:

tal:define="foo here/getFoo"
tal:content="foo/key"

...looks just fine.

Chris




More information about the ZPT mailing list