Commit d3ed5ece authored by Nicolas Delaby's avatar Nicolas Delaby

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
parent 50b7a032
......@@ -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 )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment