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

Martijn Pieters mj@zope.com
Wed, 8 May 2002 17:33:52 -0400


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

Modified Files:
      Tag: mj-dateindexes_integration-branch
	DateIndex.py 
Log Message:
- Add license headers

- Integrate better with PluginIndexes package

Tests still fail.


=== Zope/lib/python/Products/PluginIndexes/DateIndex/DateIndex.py 1.1.2.1 => 1.1.2.2 ===
+#
+# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
+# 
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE
+# 
+##############################################################################
+
 from DateTime.DateTime import DateTime
 from Products.PluginIndexes import PluggableIndex
 from Products.PluginIndexes.common.UnIndex import UnIndex
@@ -5,7 +18,6 @@
 from types import StringType, FloatType, IntType
 
 from Globals import DTMLFile
-from OFS.SimpleItem import SimpleItem
 from BTrees.IOBTree import IOBTree
 from BTrees.OIBTree import OIBTree
 from BTrees.IIBTree import IISet, union
@@ -13,11 +25,9 @@
 _marker = []
 
 
-class DateIndex( UnIndex
-               , PluggableIndex.PluggableIndex 
-               , SimpleItem 
-               ):
+class DateIndex(UnIndex):
     """ Index for Dates """
+
     __implements__ = (PluggableIndex.PluggableIndexInterface,)
 
     meta_type = 'DateIndex'