[CMF-checkins] CVS: Products/CMFDefault - DiscussionItem.py:1.18 Document.py:1.27 DublinCore.py:1.12 Favorite.py:1.9 File.py:1.16 Image.py:1.12 Link.py:1.8 NewsItem.py:1.11

Tres Seaver tseaver@zope.com
Fri, 10 Aug 2001 14:52:45 -0400


Update of /cvs-repository/Products/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv6284/CMFDefault

Modified Files:
	DiscussionItem.py Document.py DublinCore.py Favorite.py 
	File.py Image.py Link.py NewsItem.py 
Log Message:


 - Add scarecrow assertions for the CMF-centric interfaces.


=== Products/CMFDefault/DiscussionItem.py 1.17 => 1.18 ===
         Class for content which is a response to other content.
     """
+
+    __implements__ = ( PortalContent.__implements__
+                     , DefaultDublinCoreImpl.__implements__
+                     )
+
     meta_type           = 'Discussion Item'
     allow_discussion    = 1
     creator             = 'unknown'


=== Products/CMFDefault/Document.py 1.26 => 1.27 ===
     """ A Document - Handles both StructuredText and HTML """
 
+    __implements__ = ( PortalContent.__implements__
+                     , DefaultDublinCoreImpl.__implements__
+                     )
+
     meta_type = 'Document'
     effective_date = expiration_date = None
     text_format = ''


=== Products/CMFDefault/DublinCore.py 1.11 => 1.12 ===
 from Acquisition import aq_base
 from Products.CMFCore.WorkflowCore import WorkflowAction
+from Products.CMFCore.interfaces.DublinCore import DublinCore
+from Products.CMFCore.interfaces.DublinCore import CatalogableDublinCore
+from Products.CMFCore.interfaces.DublinCore import MutableDublinCore
 
 from utils import tuplize, _dtmldir, semi_split
 from Globals import InitializeClass, DTMLFile
@@ -99,6 +102,7 @@
     """
         Mix-in class which provides Dublin Core methods
     """
+    __implements__ = DublinCore, CatalogableDublinCore, MutableDublinCore
 
     security = ClassSecurityInfo()
 


=== Products/CMFDefault/Favorite.py 1.8 => 1.9 ===
     """
 
+    __implements__ = Link.__implements__ # redundant, but explicit
+
     meta_type='Favorite'
 
     def __init__( self


=== Products/CMFDefault/File.py 1.15 => 1.16 ===
     # this problem altogether. getId is the new way, accessing .id is
     # deprecated.
+
+    __implements__ = ( PortalContent.__implements__
+                     , DefaultDublinCoreImpl.__implements__
+                     )
     
     meta_type='Portal File'
     effective_date = expiration_date = None


=== Products/CMFDefault/Image.py 1.11 => 1.12 ===
     # this problem altogether. getId is the new way, accessing .id is
     # deprecated.
+
+    __implements__ = ( PortalContent.__implements__
+                     , DefaultDublinCoreImpl.__implements__
+                     )
     
     meta_type='Portal Image'
     effective_date = expiration_date = None


=== Products/CMFDefault/Link.py 1.7 => 1.8 ===
     """
 
+    __implements__ = ( PortalContent.__implements__
+                     , DefaultDublinCoreImpl.__implements__
+                     )
+
     meta_type='Link'
     effective_date = expiration_date = None
     _isDiscussable = 1


=== Products/CMFDefault/NewsItem.py 1.10 => 1.11 ===
     """
 
+    __implements__ = Document.__implements__  # redundant, but explicit
+
     meta_type='News Item'
 
     security = ClassSecurityInfo()