Sidnei da Silva wrote:
> 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.

Great.  Thanks guys.


Tim

_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to