[Erp5-report] r36216 nicolas - /erp5/trunk/products/ERP5OOo/Document/OOoDocument.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jun 10 13:39:01 CEST 2010
Author: nicolas
Date: Thu Jun 10 13:38:57 2010
New Revision: 36216
URL: http://svn.erp5.org?rev=36216&view=rev
Log:
Use web_caching_policy manager to setup HTTP Cache
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=36216&r1=36215&r2=36216&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/Document/OOoDocument.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/Document/OOoDocument.py [utf8] Thu Jun 10 13:38:57 2010
@@ -468,6 +468,12 @@ class OOoDocument(PermanentURLMixIn, Bas
archive_file.close()
def _getExtensibleContent(self, request, name):
+ # Be sure that html conversion is done,
+ # as it is required to extract extensible content
+ self._convert(format='html')
+ web_cache_kw = {'name': name,
+ 'format': '_embedded'}
+ _setCacheHeaders(_ViewEmulator().__of__(self), web_cache_kw)
try:
mime, data = self.getConversion(format='_embedded', file_name=name)
return OFSFile(name, name, data, content_type=mime).__of__(self.aq_parent)
More information about the Erp5-report
mailing list