On Wed, 13 Dec 2000, Kyler B. Laird wrote:
> Units and people both have contact information
> stored in their properties. How do I detect if a
> person has, for example, 'contact_email' set?
>
> I've tried
> <dtml-if "_.hasattr(this(), 'contact_email')">
Something like
<dtml-if "_.hasattr(aq_explicit, 'contact_email')">
(untested, but I use this in External Methods)
Oleg.
----
Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED]
Programmers don't die, they just GOSUB without RETURN.
_______________________________________________
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )