[Zope] turning off inheritance

2000-12-13 Thread Kyler B. Laird
I am working on generating a directory from Zope objects. There is a folder full of units (other folders). These units contain people (more folders). Units and people both have contact information stored in their properties. How do I detect if a person has, for example, 'contact_email' set?

Re: [Zope] turning off inheritance

2000-12-13 Thread Oleg Broytmann
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

Re: [Zope] turning off inheritance

2000-12-13 Thread Kyler B. Laird
On Wed, 13 Dec 2000 19:39:43 +0300 (MSK) you wrote: 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(),

Re: [Zope] turning off inheritance

2000-12-13 Thread Oleg Broytmann
On Wed, 13 Dec 2000, Kyler B. Laird wrote: dtml-if "_.hasattr(aq_explicit, 'contact_email')" (untested, but I use this in External Methods) Consider it tested. It works great from DTML. Now that I know what to seek, I found a couple of old messages that reference this. I'm still

Re: [Zope] turning off inheritance

2000-12-13 Thread Rik Hoekstra
"Kyler B. Laird" wrote: I am working on generating a directory from Zope objects. There is a folder full of units (other folders). These units contain people (more folders). Units and people both have contact information stored in their properties. How do I detect if a person has,