[Zope-Checkins]
SVN: Zope/branches/Zope-2_8-branch/lib/python/Products/ZCatalog/ZCatalog.py
- accept also the z3 version of PluggableIndex interface
Yvo Schubbe
y.2005- at wcm-solutions.de
Mon Oct 31 15:26:16 EST 2005
Log message for revision 39787:
- accept also the z3 version of PluggableIndex interface
Changed:
U Zope/branches/Zope-2_8-branch/lib/python/Products/ZCatalog/ZCatalog.py
-=-
Modified: Zope/branches/Zope-2_8-branch/lib/python/Products/ZCatalog/ZCatalog.py
===================================================================
--- Zope/branches/Zope-2_8-branch/lib/python/Products/ZCatalog/ZCatalog.py 2005-10-31 20:22:30 UTC (rev 39786)
+++ Zope/branches/Zope-2_8-branch/lib/python/Products/ZCatalog/ZCatalog.py 2005-10-31 20:26:16 UTC (rev 39787)
@@ -35,6 +35,7 @@
import transaction
from Products.PluginIndexes.common.PluggableIndex \
import PluggableIndexInterface
+from Products.PluginIndexes.interfaces import IPluggableIndex
from Products.PluginIndexes.TextIndex import Splitter
from zLOG import LOG
from zope.interface import implements
@@ -933,7 +934,7 @@
bases = [str(name) for name in idx.__class__.__bases__]
found = False
- if idx.meta_type == 'PathIndex':
+ if idx.meta_type == 'PathIndex':
found = True
else:
for base in bases:
@@ -958,6 +959,7 @@
if indexed_attrs:
setattr(new_idx, 'indexed_attrs', indexed_attrs)
+
if idx.meta_type == 'DateRangeIndex':
setattr(new_idx, '_since_field', since_field)
setattr(new_idx, '_until_field', until_field)
@@ -984,7 +986,7 @@
# this interface by that name. Bleah
products = ObjectManager.all_meta_types(self, interfaces=(
- PluggableIndexInterface,))
+ PluggableIndexInterface, IPluggableIndex))
p = None
More information about the Zope-Checkins
mailing list