30 Mar
2005
30 Mar
'05
5:45 p.m.
Malthe Borch wrote at 2005-3-27 01:15 +0100:
I can't seem to find an elegant solution to checking if an object has a certain attribute. The following fails (i.e. zope dies), if the attribute does not exist:
<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). -- Dieter