Commit 1f5a9d50 authored by Nicolas Delaby's avatar Nicolas Delaby

Store data into file property to activate convertToBaseFormat features of TextDocument

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37021 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e3a704aa
......@@ -129,7 +129,7 @@ class TextContent:
headers, body, format = self.handleText(text=body)
content_type = REQUEST.get_header('Content-Type', '')
headers.setdefault('content_type', content_type)
headers['text_content'] = body
headers['file'] = body
self._edit(**headers)
except 'EditingConflict', msg:
# XXX Can we get an error msg through? Should we be raising an
......
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