From d3ed5eced9de5b0296135a5d9f6c9995598784f5 Mon Sep 17 00:00:00 2001 From: Nicolas Delaby <nicolas@nexedi.com> Date: Fri, 9 Jul 2010 13:14:26 +0000 Subject: [PATCH] When edit a text/html document through webdav, store the entire document proposed by user (Do not change what user input). reflect this modification when user try to read this document trough webdav, return body content instead of entire html content. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37019 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/WebDAVSupport.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product/ERP5Type/WebDAVSupport.py b/product/ERP5Type/WebDAVSupport.py index 1223c9dbc4..2e8fff8c04 100644 --- a/product/ERP5Type/WebDAVSupport.py +++ b/product/ERP5Type/WebDAVSupport.py @@ -114,7 +114,7 @@ class TextContent: body = bodyfinder(text) else: headers, body = parseHeadersBody(text, headers) - return headers, body, format + return headers, text, format ## FTP handlers security.declareProtected(Permissions.ModifyPortalContent, 'PUT') @@ -187,7 +187,7 @@ class TextContent: bodytext = self._htmlsrc % { 'title': self.getTitle(), 'metatags': hdrtext, - 'body': self.getTextContent(''), + 'body': self.asStrippedHTML(''), } else: hdrtext = formatRFC822Headers( hdrlist ) -- 2.30.9