Skip to content

Commit

Permalink
added some z3 interfaces for catalog related classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Jul 4, 2005
1 parent 76d0575 commit 7ff6450
Show file tree
Hide file tree
Showing 3 changed files with 838 additions and 7 deletions.
18 changes: 11 additions & 7 deletions ZCatalog.py
Expand Up @@ -16,11 +16,10 @@
"""

from warnings import warn
import urllib, time, sys, string,logging
import urllib, time, sys, string, logging

from Globals import DTMLFile, MessageDialog
import Globals

from OFS.Folder import Folder
from OFS.ObjectManager import ObjectManager
from DateTime import DateTime
Expand All @@ -29,19 +28,23 @@
from DocumentTemplate.DT_Util import InstanceDict, TemplateDict
from DocumentTemplate.DT_Util import Eval
from AccessControl.Permission import name_trans
from Catalog import Catalog, CatalogError
from AccessControl.DTML import RestrictedDTML
from AccessControl.Permissions import \
manage_zcatalog_entries, manage_zcatalog_indexes, search_zcatalog
from ZCatalogIndexes import ZCatalogIndexes
from ZODB.POSException import ConflictError
import transaction
from Products.PluginIndexes.common.PluggableIndex \
import PluggableIndexInterface
from Products.PluginIndexes.TextIndex import Splitter
from IZCatalog import IZCatalog
from zLOG import LOG
from zope.interface import implements

from Catalog import Catalog, CatalogError
from interfaces import IZCatalog as z3IZCatalog
from IZCatalog import IZCatalog as z2IZCatalog
from ProgressHandler import ZLogHandler
from zLOG import LOG, INFO
from ZCatalogIndexes import ZCatalogIndexes


LOG = logging.getLogger('Zope.ZCatalog')

Expand Down Expand Up @@ -79,7 +82,8 @@ class is that it is not Zope specific. You can use it in any
Python program to catalog objects.
"""

__implements__ = IZCatalog
__implements__ = z2IZCatalog
implements(z3IZCatalog)

meta_type = "ZCatalog"
icon='misc_/ZCatalog/ZCatalog.gif'
Expand Down
27 changes: 27 additions & 0 deletions interfaces.py
@@ -0,0 +1,27 @@
##############################################################################
#
# Copyright (c) 2005 Zope Corporation and Contributors. All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (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.
#
##############################################################################
"""ZCatalog z3 interfaces.
$Id$
"""

# create IZCatalog
from Products.Five.fiveconfigure import createZope2Bridge
from IZCatalog import IZCatalog as z2IZCatalog
import interfaces

createZope2Bridge(z2IZCatalog, interfaces, 'IZCatalog')

del createZope2Bridge
del z2IZCatalog
del interfaces

0 comments on commit 7ff6450

Please sign in to comment.