[CMF-checkins] CVS: CMF/CMFCore - DiscussionTool.py:1.9 DynamicType.py:1.14

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


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

Modified Files:
	DiscussionTool.py DynamicType.py 
Log Message:
Merged yuppie-collector096-branch:
- Cleaned up Interfaces and API Help. (Collector #96)
- Removed deprecated 'register' module and interface.

=== CMF/CMFCore/DiscussionTool.py 1.8 => 1.9 ===
--- CMF/CMFCore/DiscussionTool.py:1.8	Sat Aug  3 22:31:30 2002
+++ CMF/CMFCore/DiscussionTool.py	Mon Jan  6 15:35:40 2003
@@ -26,12 +26,18 @@
 import Acquisition
 from AccessControl import ClassSecurityInfo
 
+from interfaces.Discussions import OldDiscussable as IOldDiscussable
+from interfaces.portal_discussion \
+        import oldstyle_portal_discussion as IOldstyleDiscussionTool
+
 
 class OldDiscussable(Acquisition.Implicit):
     """
         Adapter for PortalContent to implement "old-style" discussions.
     """
 
+    __implements__ = IOldDiscussable
+
     _isDiscussable = 1
 
     security = ClassSecurityInfo()
@@ -105,6 +111,9 @@
 
 
 class DiscussionTool (UniqueObject, SimpleItem):
+
+    __implements__ = IOldstyleDiscussionTool
+
     id = 'portal_discussion'
     meta_type = 'Oldstyle CMF Discussion Tool'
     # This tool is used to find the discussion for a given content object.


=== CMF/CMFCore/DynamicType.py 1.13 => 1.14 ===
--- CMF/CMFCore/DynamicType.py:1.13	Sun Aug  4 19:10:59 2002
+++ CMF/CMFCore/DynamicType.py	Mon Jan  6 15:35:40 2003
@@ -20,12 +20,17 @@
 import Globals
 from urllib import quote
 
+from interfaces.Dynamic import DynamicType as IDynamicType
+
 
 class DynamicType:
     """
     Mixin for portal content that allows the object to take on
     a dynamic type property.
     """
+
+    __implements__ = IDynamicType
+
     portal_type = None
 
     security = ClassSecurityInfo()