Commit e1c0f9c8 authored by Nicolas Delaby's avatar Nicolas Delaby

clear Conversion Cache when editing text_content of TextDocuments

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29011 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5eecd749
......@@ -128,6 +128,13 @@ class TextDocument(Document, TextContent):
security.declareProtected( Permissions.ModifyPortalContent, 'edit' )
edit = WorkflowMethod( _edit )
security.declareProtected(Permissions.ModifyPortalContent, '_setTextContent')
def _setTextContent(self, *args, **kw):
"""Call Clear conversion cache when edit text_content
"""
self.clearConversionCache()
self._baseSetTextContent(*args, **kw)
# Default Display
security.declareProtected(Permissions.View, 'index_html')
def index_html(self, REQUEST, RESPONSE, format=None, **kw):
......
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