[CMF-checkins] CVS: CMF/CMFDefault - DefaultWorkflow.py:1.14.6.1 DiscussionItem.py:1.28.6.1

Yvo Schubbe schubbe@web.de
Fri, 20 Dec 2002 11:40:22 -0500


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

Modified Files:
      Tag: yuppie-collector096-branch
	DefaultWorkflow.py DiscussionItem.py 
Log Message:
more interface cleanups:
- added interface tests and made them pass

=== CMF/CMFDefault/DefaultWorkflow.py 1.14 => 1.14.6.1 ===
--- CMF/CMFDefault/DefaultWorkflow.py:1.14	Thu Oct 17 15:38:35 2002
+++ CMF/CMFDefault/DefaultWorkflow.py	Fri Dec 20 11:39:51 2002
@@ -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.28.6.1 ===
--- CMF/CMFDefault/DiscussionItem.py:1.28	Sat Aug  3 22:31:31 2002
+++ CMF/CMFDefault/DiscussionItem.py	Fri Dec 20 11:39:51 2002
@@ -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