[Erp5-report] r42836 nicolas - /erp5/trunk/products/ERP5/Document/File.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Jan 31 17:13:26 CET 2011
Author: nicolas
Date: Mon Jan 31 17:13:25 2011
New Revision: 42836
URL: http://svn.erp5.org?rev=42836&view=rev
Log:
Update docstring according current implementation
Modified:
erp5/trunk/products/ERP5/Document/File.py
Modified: erp5/trunk/products/ERP5/Document/File.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/File.py?rev=42836&r1=42835&r2=42836&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/File.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/File.py [utf8] Mon Jan 31 17:13:25 2011
@@ -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:
More information about the Erp5-report
mailing list