[CMF-checkins] CVS: CMF/CMFCore/interfaces - portal_catalog.py:1.7
Yvo Schubbe
schubbe@web.de
Mon, 6 Jan 2003 15:38:34 -0500
Update of /cvs-repository/CMF/CMFCore/interfaces
In directory cvs.zope.org:/tmp/cvs-serv20338/CMFCore/interfaces
Modified Files:
portal_catalog.py
Log Message:
Merged yuppie-collector096-branch:
- Cleaned up Interfaces and API Help. (Collector #96)
- Removed deprecated 'register' module and interface.
=== CMF/CMFCore/interfaces/portal_catalog.py 1.6 => 1.7 ===
--- CMF/CMFCore/interfaces/portal_catalog.py:1.6 Thu Aug 1 15:05:12 2002
+++ CMF/CMFCore/interfaces/portal_catalog.py Mon Jan 6 15:38:30 2003
@@ -10,15 +10,20 @@
# FOR A PARTICULAR PURPOSE
#
##############################################################################
-""" Catalog tool interface description.
+""" Catalog tool interface.
$Id$
"""
+from Interface import Attribute
+try:
+ from Interface import Interface
+except ImportError:
+ # for Zope versions before 2.6.0
+ from Interface import Base as Interface
-from Interface import Attribute, Base
-class portal_catalog(Base):
+class portal_catalog(Interface):
'''This tool interacts with a customized ZCatalog.
'''
id = Attribute('id', 'Must be set to "portal_catalog"')
@@ -54,3 +59,14 @@
def getpath(data_record_id_):
'''Calls ZCatalog.getpath().
'''
+
+
+class IndexableObjectWrapper(Interface):
+ """ Indexable object wrapper interface.
+ """
+
+ def allowedRolesAndUsers():
+ """
+ Return a list of roles and users with View permission.
+ Used by PortalCatalog to filter out items you're not allowed to see.
+ """