Bad memory z2/cmf memory mgmt pattern (was Re: [Zope-dev] zope2 webdav memory usage...)

2008-01-10 Thread Chris McDonough
After a little further digging, I've found that code of the same ilk exists in Zope 2's OFS.FindSupport, App.DavLockManager, Products.ZCatalog.ZCatalog and Products.ZCatalog.CatalogAwareness. Variants on the theme exist in CMFCore.CMFCatalogAware as well as CMFCore.WorkflowTool. As far as

[Zope-dev] zope2 webdav memory usage...

2008-01-10 Thread Chris McDonough
Hi folks, While messing with Zope2's webdav implementation, I ran across this bit of memory-management code: dflag = hasattr(ob, '_p_changed') and (ob._p_changed == None) ... stuff ... if dflag: ob._p_deactivate() I actually think this should be: dflag = not getattr(ob, '

Re: [zope.interface bug] Re: [Zope-dev] "zope.interface" confuses Python

2008-01-10 Thread Jim Fulton
On Jan 10, 2008, at 12:44 PM, Dieter Maurer wrote: Jim Fulton wrote at 2008-1-7 16:04 -0500: ... "inspect.getmembers" and "inspect.classify_class_attrs" require that for each "name" in "dir(cls)" "getattr(cls, name)" does not raise an exception. This fails for classes magically stuffed wi

Re: [zope.interface bug] Re: [Zope-dev] "zope.interface" confuses Python

2008-01-10 Thread Dieter Maurer
Jim Fulton wrote at 2008-1-7 16:04 -0500: > ... >> "inspect.getmembers" and "inspect.classify_class_attrs" >> require that for each "name" in "dir(cls)" "getattr(cls, name)" >> does not raise an exception. >> >> This fails for classes magically stuffed with a "__provides__" >> descriptor. > >

[Zope-dev] Zope Tests: 4 OK, 1 Failed

2008-01-10 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Wed Jan 9 12:00:00 2008 UTC to Thu Jan 10 12:00:00 2008 UTC. There were 5 messages: 5 from Zope Unit Tests. Test failures - Subject: FAILED (failures=1) : Zope-trunk Python-2.4.4 : Linux From: Zope Unit Tests Date: Wed Jan 9 21:01: