[ZODB-Dev] Using Ape to map zclass property sheets

Dieter Maurer dieter at handshake.de
Wed May 14 21:44:41 EDT 2003


Rocky Burt wrote at 2003-5-13 13:45 -0400:
 > ...
 >   hasattr(obj, 'propertysheets')  # returns 1

This code is dangerous as it allows "propertysheets" to be acquired.
Use "hasattr(obj.aq_base,'propertysheets')"
or "from Acquisition import aq_base; hasattr(aq_base(obj),'propertysheets')"



Dieter



More information about the ZODB-Dev mailing list