[Zope] avoiding 'AttributeError'
Malthe Borch
mborch at 3avod.dk
Wed Mar 30 13:53:00 EST 2005
' -----Original Message-----
' From: Dieter Maurer [mailto:dieter at handshake.de]
' <p tal:condition="exists: obj/someAttribute"
' tal:replace="obj/someAttribute" />
'
' This should not fail and, especially, Zope should not die.
'
' If Zope really dies, then there is a *severe* problem elsewhere
' (not with your ZPT code).
It does fail, however zope doesn't 'die', it merely fails, displaying an error
message. But as somebody else pointed out, it should read:
<p tal:condition="obj/someAttribute|nothing"
tal:replace="obj/someAttribute" />
because it's the tal:condition-tag that is failing. that's how I understand it
at least.
\malthe
More information about the Zope
mailing list