Commit 70fc7d1e authored by Nicolas Delaby's avatar Nicolas Delaby

Update docstring according current implementation


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42836 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6635b7ed
......@@ -246,23 +246,10 @@ class File(Document, CMFFile):
return (mime_type, content)
def _convert(self, format, **kw):
"""According content_type of data we can proceed some Conversions.
The idea is to wrap data into TempDocument who support conversion
then return conversion from this temporary document.
mimetype Class of temp document
text/???? newTempTextDocument
image/???? newTempImage
application/pdf newTempPDFDocument
[ooo supported content_type list] newTempOOoDocument
unknown no conversion supported
XXX Another idea of implementation from JPS: Changing dynamicaly the Class
of persistent_object.
for example any instance of File portal_type can follow TextDocument API
if content_type is 'text/html' and support conversion features of
TextDocument.
"""File is not convertable.
Only original format and text formats are allowed.
However this document can migrate to another portal_type which support
conversions.
"""
content_type = self.getContentType() or ''
if format is None:
......
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