[CMF-checkins] CVS: CMF/CMFCore/interfaces - portal_actions.py:1.8.12.2
Yvo Schubbe
schubbe@web.de
Thu, 19 Dec 2002 13:19:57 -0500
Update of /cvs-repository/CMF/CMFCore/interfaces
In directory cvs.zope.org:/tmp/cvs-serv8986/CMFCore/interfaces
Modified Files:
Tag: yuppie-collector096-branch
portal_actions.py
Log Message:
tool interface cleanup:
- added portal_properties interface
- added interface tests and made them pass
=== CMF/CMFCore/interfaces/portal_actions.py 1.8.12.1 => 1.8.12.2 ===
--- CMF/CMFCore/interfaces/portal_actions.py:1.8.12.1 Wed Dec 18 16:42:45 2002
+++ CMF/CMFCore/interfaces/portal_actions.py Thu Dec 19 13:19:57 2002
@@ -10,14 +10,20 @@
# FOR A PARTICULAR PURPOSE
#
##############################################################################
-""" Actions tool interface description.
+""" Actions tool interface.
$Id$
"""
-from Interface import Base, Attribute
+from Interface import Attribute
+try:
+ from Interface import Interface
+except ImportError:
+ # for Zope versions before 2.6.0
+ from Interface import Base as Interface
-class portal_actions(Base):
+
+class portal_actions(Interface):
'''Gathers a list of links which the user is allowed to view according to
the current context.
'''
@@ -64,7 +70,7 @@
'''
-class ActionProvider(Base):
+class ActionProvider(Interface):
'''The interface expected of an object that can provide actions.
'''