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

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


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

Modified Files:
      Tag: tseaver-tracker_435-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.


=== Products/CMFDefault/Document.py 1.39 => 1.39.4.1 ===
         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')