PSC, Poi, plone.app.layout.navigation, and BTrees

Martin Aspeli optilude at gmx.net
Mon Oct 22 20:43:21 UTC 2007


Raphael Ritz wrote:

> While I'm able to come up with a work-around by suppressing the
> extra handling of BTree folders in
> 
>    plone.app.layout.navigation.defaultpage
> 
> which isn't strictly necessary because BTree folders support the
> OFS ObjectManager API as well (why was this added in the first place?
> performance reasons?) I still don't understand what's going on here.

Precisely - context.has_key(x) is faster than x in context.objectIds or 
something like that.

> Furthermore, I'm not sure what's really causing the problem
> in the first place and therefore where this should be fixed.
> Currently I tend to think  plone.app.layout.navigation.defaultpage
> isn't clever enough but I might be wrong.

I don't really know what's going on here, but it's perfectly reasonable 
that this could be a bug in plone.app.layout, in which case, please test 
and fix. ;-)

Martin

-- 
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book





More information about the Product-Developers mailing list