[Erp5-report] r12413 - /erp5/trunk/products/ERP5/Document/TextDocument.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Sun Jan 28 17:04:51 CET 2007
Author: jp
Date: Sun Jan 28 17:04:47 2007
New Revision: 12413
URL: http://svn.erp5.org?rev=12413&view=rev
Log:
Accelerate Web Pages.
Modified:
erp5/trunk/products/ERP5/Document/TextDocument.py
Modified: erp5/trunk/products/ERP5/Document/TextDocument.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/TextDocument.py?rev=12413&r1=12412&r2=12413&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/TextDocument.py (original)
+++ erp5/trunk/products/ERP5/Document/TextDocument.py Sun Jan 28 17:04:47 2007
@@ -32,6 +32,7 @@
from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface
from Products.ERP5.Document.Document import Document
from Products.ERP5Type.WebDAVSupport import TextContent
+from Products.CMFCore.utils import _setCacheHeaders
class TextDocument(Document, TextContent):
"""
@@ -97,6 +98,7 @@
By providing a format parameter, it is possible to
convert the text content into various formats.
"""
+ _setCacheHeaders(self, {'format': format})
if format is None:
# The default is to use ERP5 Forms to render the page
return self.view()
More information about the Erp5-report
mailing list