[CMF-checkins] CVS: CMF/CMFCore/interfaces - portal_skins.py:1.6.8.1 portal_types.py:1.12.12.1 portal_undo.py:1.4.12.1
Yvo Schubbe
schubbe@web.de
Thu, 19 Dec 2002 17:09:12 -0500
Update of /cvs-repository/CMF/CMFCore/interfaces
In directory cvs.zope.org:/tmp/cvs-serv8450/CMFCore/interfaces
Modified Files:
Tag: yuppie-collector096-branch
portal_skins.py portal_types.py portal_undo.py
Log Message:
tool interface cleanup:
- added interface tests and made them pass
=== CMF/CMFCore/interfaces/portal_skins.py 1.6 => 1.6.8.1 ===
--- CMF/CMFCore/interfaces/portal_skins.py:1.6 Thu Aug 22 13:45:53 2002
+++ CMF/CMFCore/interfaces/portal_skins.py Thu Dec 19 17:09:11 2002
@@ -10,14 +10,20 @@
# FOR A PARTICULAR PURPOSE
#
##############################################################################
-""" Skins tool interface description.
+""" Skins tool interface.
$Id$
"""
-from Interface import Attribute, Base
+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_skins(Base):
+
+class portal_skins(Interface):
'''An object that provides skins to a portal object.
'''
id = Attribute('id', 'Must be set to "portal_skins"')
=== CMF/CMFCore/interfaces/portal_types.py 1.12 => 1.12.12.1 ===
--- CMF/CMFCore/interfaces/portal_types.py:1.12 Sun Aug 4 19:10:59 2002
+++ CMF/CMFCore/interfaces/portal_types.py Thu Dec 19 17:09:11 2002
@@ -10,14 +10,20 @@
# FOR A PARTICULAR PURPOSE
#
##############################################################################
-""" Type registration tool interface description.
+""" Type registration tool interface.
$Id$
"""
-from Interface import Attribute, Base
+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 ContentTypeInformation(Base):
+
+class ContentTypeInformation(Interface):
"""
Registry entry interface.
"""
@@ -74,7 +80,7 @@
Returns the portal-relative icon for this type.
"""
-class portal_types(Base):
+class portal_types(Interface):
"""
Provides a configurable registry of portal content types.
"""
=== CMF/CMFCore/interfaces/portal_undo.py 1.4 => 1.4.12.1 ===
--- CMF/CMFCore/interfaces/portal_undo.py:1.4 Thu Aug 1 15:05:12 2002
+++ CMF/CMFCore/interfaces/portal_undo.py Thu Dec 19 17:09:11 2002
@@ -10,14 +10,20 @@
# FOR A PARTICULAR PURPOSE
#
##############################################################################
-""" Undo tool interface description.
+""" Undo tool interface.
$Id$
"""
-from Interface import Attribute, Base
+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_undo(Base):
+
+class portal_undo(Interface):
'''Provides access to Zope undo functions.
'''
id = Attribute('id', 'Must be set to "portal_undo"')