Commit 083df40c authored by Ivan Tyagov's avatar Ivan Tyagov

Moved to abstract class in r36814.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36815 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a252382a
......@@ -239,31 +239,6 @@ class OOoDocument(PermanentURLMixIn, BaseConvertableFileMixin, File,
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment