[CMF-checkins] CVS: CMF/CMFCore/interfaces - portal_metadata.py:1.4

Yvo Schubbe schubbe@web.de
Mon, 6 Jan 2003 15:39:16 -0500


Update of /cvs-repository/CMF/CMFCore/interfaces
In directory cvs.zope.org:/tmp/cvs-serv20679/CMFCore/interfaces

Modified Files:
	portal_metadata.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_metadata.py 1.3 => 1.4 ===
--- CMF/CMFCore/interfaces/portal_metadata.py:1.3	Wed Nov 28 14:06:25 2001
+++ CMF/CMFCore/interfaces/portal_metadata.py	Mon Jan  6 15:39:12 2003
@@ -10,18 +10,24 @@
 # FOR A PARTICULAR PURPOSE
 # 
 ##############################################################################
+""" Metadata registration tool interface.
 
-"""
-    Type registration tool interface description.
+$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_metadata(Base):
+class portal_metadata(Interface):
     """
         CMF metadata policies interface.
     """
+    id = Attribute('id', 'Must be set to "portal_metadata"')
 
     #
     #   Site-wide queries.