On 3/30/07, Martijn Pieters <[EMAIL PROTECTED]> wrote:
IIRC you may need to test for the objects active state before deactivating, only deactivate those that were not active in the first place, to minimize trashing cached objects used elsewhere:def listDAVObjects(self): for obj in self._tree.itervalues(): deactivate = getattr(obj, '_p_changed', True) is None yield obj.__of__(self) if deactivate: obj._p_deactivate()
Yup, that looks fine to me. -- Sidnei da Silva Enfold Systems http://enfoldsystems.com Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214 _______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers
