Commit 0c1d950c authored by Nicolas Delaby's avatar Nicolas Delaby

Same as r35749

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35754 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 20046c21
...@@ -224,7 +224,8 @@ class File(Document, CMFFile): ...@@ -224,7 +224,8 @@ class File(Document, CMFFile):
return (mime_type, content) return (mime_type, content)
def _convert(self, format, **kw): security.declareProtected(Permissions.AccessContentsInformation, 'convert')
def convert(self, format, **kw):
"""According content_type of data we can proceed some Conversions. """According content_type of data we can proceed some Conversions.
The idea is to wrap data into TempDocument who support conversion The idea is to wrap data into TempDocument who support conversion
then return conversion from this temporary document. then return conversion from this temporary document.
......
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