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

Jens Vagelpohl jens at dataflake.org
Wed Aug 4 02:12:55 EDT 2004


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

Modified Files:
	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.23 => 1.24 ===
--- Products/CMFDefault/NewsItem.py:1.23	Thu Apr 29 12:13:17 2004
+++ Products/CMFDefault/NewsItem.py	Wed Aug  4 02:12:24 2004
@@ -61,7 +61,7 @@
                , title=''
                , description=''
                , text=''
-               , text_format='html'
+               , text_format=''
                ):
     """
         Add a NewsItem
@@ -93,7 +93,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