[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/DateIndex - DateIndex.py:1.8.22.1

Casey Duncan casey@zope.com
Thu, 5 Dec 2002 16:07:45 -0500


Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/DateIndex
In directory cvs.zope.org:/tmp/cvs-serv29848/DateIndex

Modified Files:
      Tag: casey-zcatalog-speedup-branch
	DateIndex.py 
Log Message:
Cleaned up PlugInIndex interfaces to bring them closer to reality
Added SortIndex and UniqueValueIndex interfaces, assigned them to the proper indexes
Added documentToKeyMap method to UnIndex base class. This is now used in the optimized ZCatalog sort code instead of keyForDocument


=== Zope/lib/python/Products/PluginIndexes/DateIndex/DateIndex.py 1.8 => 1.8.22.1 ===
--- Zope/lib/python/Products/PluginIndexes/DateIndex/DateIndex.py:1.8	Tue Oct  1 10:09:47 2002
+++ Zope/lib/python/Products/PluginIndexes/DateIndex/DateIndex.py	Thu Dec  5 16:07:14 2002
@@ -32,7 +32,8 @@
 class DateIndex(UnIndex):
     """ Index for Dates """
 
-    __implements__ = (PluggableIndex.PluggableIndexInterface,)
+    __implements__ = (PluggableIndex.UniqueValueIndex,
+                      PluggableIndex.SortIndex)
 
     meta_type = 'DateIndex'
     query_options = ['query', 'range']