[CMF-checkins] CVS: CMF/CMFDefault - Document.py:1.39.2.2

Tres Seaver tseaver@zope.com
Mon, 17 Dec 2001 13:22:28 -0500


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

Modified Files:
      Tag: CMF-1_2-branch
	Document.py 
Log Message:


 - Ensure that Documents constructed with initial STX get cooked
     (Tracker #435).

 - Refactor unit test for Document to use 'assertEqual', et aliae.


=== CMF/CMFDefault/Document.py 1.39.2.1 => 1.39.2.2 ===
         self.title = title
         self.description = description
-        self.text = text
-        self.setFormat(value=text_format)
+        self._edit( text=text, text_format=text_format )
+        self.setFormat( text_format )
 
     security.declareProtected(CMFCorePermissions.ModifyPortalContent,
                               'manage_edit')