Commit 20046c21 authored by Nicolas Delaby's avatar Nicolas Delaby

There is no needs to override convertToBaseFormat

from BaseConvertableMixin


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35753 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6cfc2d00
......@@ -275,23 +275,6 @@ class TextDocument(CachedConvertableMixin, BaseConvertableFileMixin,
"""
return True
security.declareProtected(Permissions.ModifyPortalContent, 'convertToBaseFormat')
def convertToBaseFormat(self, **kw):
"""
"""
if not self.hasData():
# Empty document no need to convert into base format
return
try:
message = self._convertToBaseFormat() # Call implemetation method
if message is None:
message = self.Base_translateString('Converted to ${mime_type}.',
mapping={'mime_type': self.getBaseContentType()})
self.convertFile(comment=message) # Invoke workflow method
except NotImplementedError:
message = ''
return message
def _convertToBaseFormat(self):
"""Conversion to base format for TextDocument consist
to convert file content into utf-8
......
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