[CMF-checkins] CVS: CMF - NewsItem.py:1.8

shane@digicool.com shane@digicool.com
Fri, 25 May 2001 13:44:51 -0400 (EDT)


Update of /cvs-repository/CMF/CMFDefault
In directory korak.digicool.com:/tmp/cvs-serv22016

Modified Files:
	NewsItem.py 
Log Message:
Backward compat.



--- Updated File NewsItem.py in package CMF --
--- NewsItem.py	2001/05/24 20:39:40	1.7
+++ NewsItem.py	2001/05/25 17:44:51	1.8
@@ -161,7 +161,7 @@
             Edit the News Item
         """
         if text_format is None:
-            text_format = self.text_format
+            text_format = getattr(self, 'text_format', 'html')
         if description is not None:
             self.setDescription( description )
         Document._edit( self, text_format, text )