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
' -Original Message-
' From: Dieter Maurer [mailto:[EMAIL PROTECTED]
' 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