[Erp5-report] r13478 - /erp5/trunk/products/ERP5/Document/TextDocument.py

nobody at svn.erp5.org nobody at svn.erp5.org
Sun Mar 18 18:40:37 CET 2007


Author: jp
Date: Sun Mar 18 18:40:32 2007
New Revision: 13478

URL: http://svn.erp5.org?rev=13478&view=rev
Log:
Implemented convert.

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=13478&r1=13477&r2=13478&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/TextDocument.py (original)
+++ erp5/trunk/products/ERP5/Document/TextDocument.py Sun Mar 18 18:40:32 2007
@@ -120,6 +120,13 @@
       if format is None:
         # The default is to use ERP5 Forms to render the page
         return self.view()
+      return self.convert(format=format)
+
+    security.declareProtected(Permissions.View, 'convert')
+    def convert(self, format, **kw):
+      """
+        Convert text using portal_transforms
+      """
       # Accelerate rendering in Web mode
       _setCacheHeaders(self, {'format' : format})
       # Return the raw content




More information about the Erp5-report mailing list