[CMF-checkins] CVS: CMF/CMFDefault - DefaultWorkflow.py:1.15 DiscussionItem.py:1.29

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


Update of /cvs-repository/CMF/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv21424/CMFDefault

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

=== CMF/CMFDefault/DefaultWorkflow.py 1.14 => 1.15 ===
--- CMF/CMFDefault/DefaultWorkflow.py:1.14	Thu Oct 17 15:38:35 2002
+++ CMF/CMFDefault/DefaultWorkflow.py	Mon Jan  6 15:41:34 2003
@@ -27,8 +27,14 @@
 from Products.CMFCore.WorkflowCore import WorkflowException
 from Products.CMFCore.WorkflowTool import addWorkflowClass
 
+from Products.CMFCore.interfaces.portal_workflow \
+        import WorkflowDefinition as IWorkflowDefinition
+
 
 class DefaultWorkflowDefinition (SimpleItemWithProperties):
+
+    __implements__ = IWorkflowDefinition
+
     meta_type = 'Workflow'
     id = 'default_workflow'
     title = 'Simple Review / Publish Policy'


=== CMF/CMFDefault/DiscussionItem.py 1.28 => 1.29 ===
--- CMF/CMFDefault/DiscussionItem.py:1.28	Sat Aug  3 22:31:31 2002
+++ CMF/CMFDefault/DiscussionItem.py	Mon Jan  6 15:41:34 2003
@@ -28,6 +28,9 @@
 from Document import Document
 from DublinCore import DefaultDublinCoreImpl
 
+from Products.CMFCore.interfaces.Discussions import DiscussionResponse
+from Products.CMFCore.interfaces.Discussions import Discussable
+
 
 factory_type_information = ( { 'id'             : 'Discussion Item'
                              , 'meta_type'      : 'Discussion Item'
@@ -87,7 +90,8 @@
         Class for content which is a response to other content.
     """
 
-    __implements__ = ( PortalContent.__implements__
+    __implements__ = ( DiscussionResponse
+                     , PortalContent.__implements__
                      , DefaultDublinCoreImpl.__implements__
                      )
 
@@ -170,6 +174,8 @@
         instance of DiscussionItemContainer injected into it to
         hold the discussion threads.
     """
+
+    __implements__ = Discussable
 
     # for the security machinery to allow traversal
     #__roles__ = None