[CMF-checkins] CVS: Products/CMFDefault - NewsItem.py:1.18.4.3

Jens Vagelpohl jens at dataflake.org
Wed Aug 4 02:13:28 EDT 2004


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

Modified Files:
      Tag: CMF-1_4-branch
	NewsItem.py 
Log Message:
- Change default format for NewsItems to structured-text so it acts like a
  Document (http://zope.org/Collectors/CMF/138)


=== Products/CMFDefault/NewsItem.py 1.18.4.2 => 1.18.4.3 ===
--- Products/CMFDefault/NewsItem.py:1.18.4.2	Thu Apr 22 13:47:50 2004
+++ Products/CMFDefault/NewsItem.py	Wed Aug  4 02:12:57 2004
@@ -60,7 +60,7 @@
                , title=''
                , description=''
                , text=''
-               , text_format='html'
+               , text_format=''
                ):
     """
         Add a NewsItem
@@ -91,7 +91,7 @@
             Edit the News Item
         """
         if text_format is None:
-            text_format = getattr(self, 'text_format', 'html')
+            text_format = getattr(self, 'text_format', 'structured-text')
         if description is not None:
             self.setDescription( description )
         Document.edit( self, text_format, text )



More information about the CMF-checkins mailing list