Skip to content

Commit

Permalink
accept also the z3 version of the PluggableIndex interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Oct 2, 2005
1 parent af1a5fc commit e6bc16c
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions ZCatalogIndexes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.SimpleItem import SimpleItem
from OFS.ObjectManager import IFAwareObjectManager
from OFS.SimpleItem import SimpleItem
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 = ()
Expand Down Expand Up @@ -113,6 +117,7 @@ def __bobo_traverse__(self, REQUEST, name):

InitializeClass(ZCatalogIndexes)


class OldCatalogWrapperObject(SimpleItem, Implicit):

manage_options= (
Expand Down

0 comments on commit e6bc16c

Please sign in to comment.