[Erp5-report] r17609 - /erp5/trunk/products/ERP5OOo/Document/OOoDocument.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Nov 15 11:10:15 CET 2007


Author: jp
Date: Thu Nov 15 11:10:15 2007
New Revision: 17609

URL: http://svn.erp5.org?rev=17609&view=rev
Log:
OOoDocument should use the standard base_data accessor.

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=17609&r1=17608&r2=17609&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/Document/OOoDocument.py (original)
+++ erp5/trunk/products/ERP5OOo/Document/OOoDocument.py Thu Nov 15 11:10:15 2007
@@ -442,6 +442,14 @@
       archive_file.close()
 
   # Base format implementation
+  security.declareProtected(Permissions.AccessContentsInformation, 'hasBaseData')
+  def hasBaseData(self):
+    """
+      OOo instances implement conversion to a base format. We should therefore
+      use the default accessor.
+    """
+    return self.baseHasBaseData()
+
   security.declarePrivate('_convertToBaseFormat')
   def _convertToBaseFormat(self):
     """




More information about the Erp5-report mailing list