[Erp5-report] r19521 - /erp5/trunk/products/ERP5OOo/Document/OOoDocument.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Feb 26 15:43:23 CET 2008
Author: jp
Date: Tue Feb 26 15:43:22 2008
New Revision: 19521
URL: http://svn.erp5.org?rev=19521&view=rev
Log:
Rename method. populateContent should be used for another purpose: ODT document analysis (ie. automatic extraction of paragraphs, articles, etc. from a large document)
Modified:
erp5/trunk/products/ERP5OOo/Document/OOoDocument.py
Modified: erp5/trunk/products/ERP5OOo/Document/OOoDocument.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/Document/OOoDocument.py?rev=19521&r1=19520&r2=19521&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/Document/OOoDocument.py (original)
+++ erp5/trunk/products/ERP5OOo/Document/OOoDocument.py Tue Feb 26 15:43:22 2008
@@ -414,7 +414,7 @@
data = z.read(fn)
break
mime = 'text/html'
- self.populateContent(zip_file=z) # Maybe some parts should be asynchronous for
+ self._populateConversionCacheWithHTML(zip_file=z) # Maybe some parts should be asynchronous for
# better usability
z.close()
cs.close()
@@ -454,8 +454,8 @@
return self._convert(format='text-content')
security.declareProtected(Permissions.ModifyPortalContent,
- 'populateContent')
- def populateContent(self, zip_file=None):
+ '_populateConversionCacheWithHTML')
+ def _populateConversionCacheWithHTML(self, zip_file=None):
"""
Extract content from the ODF zip file and populate the document.
Optional parameter zip_file prevents from converting content twice.
More information about the Erp5-report
mailing list