[Zope] Simple (?) getattr question: ignore acquisition

Florent Guillaume fg@nuxeo.com
21 Aug 2001 20:43:02 GMT


> Folder "gimbo" contains two folders, "notes" and "queries".
> Queries has subdirectories, some of which have a "notes" property
> (a string).

If you're only dealing with properties, then a simple
 f.hasProperty('notes')
or
 f.getProperty('notes')    # returns None if not found
will do the trick, as it doesn't acquire parent's properties.

Otherwise with basic attributes it's usually more involved...


Florent Guillaume
Nuxeo