[Zope-Coders] Re: [Zope-Checkins] CVS:
Zope/lib/python/Products/PluginIndexes/DateRangeIndex -
DateRangeIndex.py:1.6.2.2
Andreas Jung
andreas at andreas-jung.com
Wed Nov 19 11:06:19 EST 2003
--On Mittwoch, 19. November 2003 9:33 Uhr -0500 Casey Duncan
<casey at zope.com> wrote:
>
> The problem is that we no longer live in a world with 3 index types. Now
> we have n. The ZCatalog addIndex api assumes that catalog knows about all
> of the index types you might want to add. That's just not the case now. I
> think it would be wise to deprecate that api and migrate application code
> to use the ObjectManager api (I use the term loosely ;^) to manipulate
> ZCatalog.Indexes directly.
That's right but it should be possible to create a ZCTextIndex through
enumarateIndexes() with some reasonable default settings. A lexicon could be
created inside the constructor somehow if it could not be passed through the
addIndex API.
Andreas
More information about the Zope-Coders
mailing list