[Zope-CMF] IIndexableObjectWrapper

yuppie y.2009 at wcm-solutions.de
Sun Apr 5 12:07:08 EDT 2009


Wichert Akkerman wrote:
> Previously yuppie wrote:
>> Martin Aspeli wrote:
>>> Plone 3.3's IIndexableObjectWrapper implementation (in plone.indexer) 
>>> has a method _getWrappedObject(), to return the object that was wrapped 
>>> by the indexable object wrapper. It is (or rather, will be) used by 
>>> TextIndexNG3, which needs to access the raw object during indexing.
>> Why is there a need to access the raw object? The wrapper should provide 
>> all the interfaces and attributes required for indexing.
> 
> TextIndexNG3 needs the unwrapped object to be able to look for adapters
> that provide indexable text for that object.

That's BBB code for old IndexableObjectWrappers that don't use 
IndexableObjectSpecification. With the correct __providedBy__ there is 
no need to unwrap the object before looking up adapters.

Cheers, Yuppie



More information about the Zope-CMF mailing list