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

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Jul 2 16:07:42 CEST 2010


Author: ivan
Date: Fri Jul  2 16:07:40 2010
New Revision: 36815

URL: http://svn.erp5.org?rev=36815&view=rev
Log:
Moved to abstract class in r36814.

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=36815&r1=36814&r2=36815&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/Document/OOoDocument.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/Document/OOoDocument.py [utf8] Fri Jul  2 16:07:40 2010
@@ -239,31 +239,6 @@ class OOoDocument(PermanentURLMixIn, Bas
 
     return cached_getTargetFormatItemList(self.getBaseContentType())
 
-  security.declareProtected(Permissions.AccessContentsInformation,
-                            'getTargetFormatTitleList')
-  def getTargetFormatTitleList(self):
-    """
-      Returns a list of acceptable formats for conversion
-    """
-    return map(lambda x: x[0], self.getTargetFormatItemList())
-
-  security.declareProtected(Permissions.AccessContentsInformation,
-                            'getTargetFormatList')
-  def getTargetFormatList(self):
-    """
-      Returns a list of acceptable formats for conversion
-    """
-    return map(lambda x: x[1], self.getTargetFormatItemList())
-
-  security.declareProtected(Permissions.ModifyPortalContent,
-                            'isTargetFormatAllowed')
-  def isTargetFormatAllowed(self, format):
-    """
-      Checks if the current document can be converted
-      into the specified target format.
-    """
-    return format in self.getTargetFormatList()
-
   def _getConversionFromProxyServer(self, format):
     """
       Communicates with server to convert a file 




More information about the Erp5-report mailing list