[Zope-CMF] IndexableObjectWrapper
Miles
miles at jamkit.com
Wed Mar 18 09:18:04 EDT 2009
Hi
<snip>
>> Can I suggest the following logic:
>>
>> 1. if the object already implements the IIndexableObject marker
>> interface, no wrapping is required;
>>
>> 2. otherwise, adapt to IIndexableObject to do the wrapping;
>>
>> 3. if no adapter is registered, fall back to the existing
>> IndexableObjectWrapper class for BBB.
>
> That sounds like what I had in mind, but not for BBB. I think of the
> adapter scheme as a way to choose a non-default wrapper, rather than a
> quasi-mandatory replacement for it.
Ok, well this logic is checked in now on the branch, and tests adjusted
accordingly. Without any warnings.
Miles
More information about the Zope-CMF
mailing list