[Zope-Checkins]
SVN: Zope/trunk/lib/python/Products/ZCatalog/ZCatalogIndexes.py
accept also the z3 version of the PluggableIndex interface
Yvo Schubbe
y.2005- at wcm-solutions.de
Sun Oct 2 09:02:20 EDT 2005
Log message for revision 38714:
accept also the z3 version of the PluggableIndex interface
Changed:
UU Zope/trunk/lib/python/Products/ZCatalog/ZCatalogIndexes.py
-=-
Modified: Zope/trunk/lib/python/Products/ZCatalog/ZCatalogIndexes.py
===================================================================
--- Zope/trunk/lib/python/Products/ZCatalog/ZCatalogIndexes.py 2005-10-02 10:29:15 UTC (rev 38713)
+++ Zope/trunk/lib/python/Products/ZCatalog/ZCatalogIndexes.py 2005-10-02 13:02:19 UTC (rev 38714)
@@ -7,33 +7,37 @@
# 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
+# FOR A PARTICULAR PURPOSE.
#
##############################################################################
+"""Virtual container for ZCatalog indexes.
-"""$Id$
+$Id$
"""
-
from Acquisition import Implicit
from Persistence import Persistent
from Globals import DTMLFile, InitializeClass
from AccessControl.SecurityInfo import ClassSecurityInfo
from AccessControl.Permissions import manage_zcatalog_indexes
from OFS.Folder import Folder
+from OFS.ObjectManager import IFAwareObjectManager
from OFS.SimpleItem import SimpleItem
-from OFS.ObjectManager import IFAwareObjectManager
+from Products.PluginIndexes.common.PluggableIndex \
+ import PluggableIndexInterface
+from Products.PluginIndexes.interfaces import IPluggableIndex
-from Products.PluginIndexes.common.PluggableIndex import PluggableIndexInterface
_marker = []
-class ZCatalogIndexes (IFAwareObjectManager, Folder, Persistent, Implicit):
+
+class ZCatalogIndexes(IFAwareObjectManager, Folder, Persistent, Implicit):
+
"""A mapping object, responding to getattr requests by looking up
the requested indexes in an object manager."""
# The interfaces we want to show up in our object manager
- _product_interfaces = (PluggableIndexInterface, )
+ _product_interfaces = (PluggableIndexInterface, IPluggableIndex)
meta_type = "ZCatalogIndex"
manage_options = ()
@@ -113,6 +117,7 @@
InitializeClass(ZCatalogIndexes)
+
class OldCatalogWrapperObject(SimpleItem, Implicit):
manage_options= (
Property changes on: Zope/trunk/lib/python/Products/ZCatalog/ZCatalogIndexes.py
___________________________________________________________________
Name: cvs2svn:cvs-rev
- 1.9
More information about the Zope-Checkins
mailing list