On 6/1/07, Tim Hicks <[EMAIL PROTECTED]> wrote:
> in which case you'd perhaps be better off using a
> different mixin object (you can specify an additional mixin in
> catalogs).

Yeah, I thought that was possible, but as there is no useBrains method
on ZCatalog, I figured it was not the done thing.  So should I just call
portal_catalog._catalog.useBrains(Proxy), or something along those lines?

Yup, the useBrains plumbing is somewhat outdated.

If you do decide to stick with proxy objects, make them adapters at
least. CatalogBrains don't have an interface out-of-the-box (at least
not until Zope 2.11) but it is easy to 'paint' an interface onto them
using ZCML, after which it becomes trivial to use adapters on them:

<five:implements
   class="Products.ZCatalog.CatalogBrains.AbstractCatalogBrain"
   interface=".interfaces.IAbstractCatalogBrain"
   />

--
Martijn Pieters

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

Reply via email to