[Zope-CMF] CMFCatalogAware.dispatchToOpaqueItems madness

Matt Hamilton matth at netsight.co.uk
Fri Dec 19 04:48:34 EST 2008


Matt Hamilton <matth at ...> writes:

> 
> I really don't understand this code, so maybe I'm missing something here, but
> anyone know wtf the opaqueItem code does in CMFCore.CMFCatalogAware?!
> 
> Why does the opaqueItems method iterate through *every* attribute in the root
> of the site causing all objects (including, at least in plone) all sub-objects
> of folders to be woken up too):

Of course as soon as you find the problem, you then know how to ask the
question... and in looking for opaqueitems, found that Helge has already got
there and started waving some performance pixie dust over it:

http://pypi.python.org/pypi/experimental.opaquespeedup

Still... I don't quite understand why CMF is doing what it is doing in the first
place.

-Matt

-- 
Matt Hamilton                                       matth at netsight.co.uk
Netsight Internet Solutions, Ltd.           Understand. Develop. Deliver
http://www.netsight.co.uk                             +44 (0)117 9090901
Web Design | Zope/Plone Development & Consulting | Co-location | Hosting





More information about the Zope-CMF mailing list