[Zope] Architectural decisions

Chris Withers chris at simplistix.co.uk
Tue May 25 10:19:38 EDT 2004


Ben Last wrote:

>>From: Peter Bengtsson [mailto:mail at peterbe.com]
>>I don't know of a "definitive listing" but try to have as a rule of
>>thumb to never use getattr or hasattr in TAL.
> 
> Thanks, Peter, but in that case, how do you do traversal of the general
> containment hierarchy to locate something whose name you have in a variable?

<tal:x define="testvar string:someobjectname;"
        replace="here/folder/?testvar"/>

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk




More information about the Zope mailing list