[CMF-checkins] CVS: CMF - Document.py:1.4

Jeffrey Shell jeffrey@digicool.com
Fri, 23 Mar 2001 15:25:30 -0500 (EST)


Update of /cvs-repository/CMF/CMFDefault
In directory korak:/home/jeffrey/InstanceHomes/cmf-dev/CMF/CMFDefault

Modified Files:
	Document.py 
Log Message:
At the end of __init__, self.edit is called instead of self._parse,
which means that HTML can finally be passed into the constructor.
Unit tests verify that initializing with just the 'id' gives the
proper results.



--- Updated File Document.py in package CMF --
--- Document.py	2001/03/22 21:28:20	1.3
+++ Document.py	2001/03/23 20:25:29	1.4
@@ -132,7 +132,7 @@
         self.description=description
         self.text=text
         self.text_format=text_format
-        self._parse()
+        self.edit(text_format, text)
 
     def edit(self, text_format, text, file=''):
         """