[CMF-checkins] CVS: CMF - Document.py:1.15
shane@digicool.com
shane@digicool.com
Fri, 25 May 2001 13:44:31 -0400 (EDT)
Update of /cvs-repository/CMF/CMFDefault
In directory korak.digicool.com:/tmp/cvs-serv21998
Modified Files:
Document.py
Log Message:
The body should default to the text the user entered.
--- Updated File Document.py in package CMF --
--- Document.py 2001/05/25 02:22:48 1.14
+++ Document.py 2001/05/25 17:44:31 1.15
@@ -132,8 +132,8 @@
""" Add a Document """
o = Document(id, title, description, text_format, text)
self._setObject(id,o)
- afterCreate(self.this()._getOb(id))
-
+
+
class CMFHtmlWithImages(HTMLWithImages):
""" Special subclass of HTMLWithImages, overriding document() """
def document(self, doc, level, output):
@@ -228,7 +228,7 @@
def handleText(self, text, format=None):
""" Handles the raw text, returning headers, body, cooked, format """
headers = {}
- body = cooked = ""
+ body = cooked = text
if not format:
format = self.guessFormat(text)