On 15 Nov, 2006, at 11:18, Andi Vajda wrote:
On Wed, 15 Nov 2006, Andi Vajda wrote:
To rebuild an index, save its creation keywords with
index.getInitKeywords() and type with index.getIndexType(), remove
the index with removeIndex() and create the same index using the
type and init keywords saved with addIndex().
Correction: removeIndex() is going to cause all subIndexes to get
lost. If you need a way to rebuild indexes, I need to add a proper
API for this. Let me know if and when you need this.
Hmmm... There's code in parcels/osaf/pim/calendar/TimeZone.py that
rebuilds floating event indexes when you toggle showing TimeZones.
That uses collection.reindexKeys(). Should it be using something else?
--Grant
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Open Source Applications Foundation "chandler-dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/chandler-dev