Commit 07b94396 authored by Bartek Górny's avatar Bartek Górny

adjusted to the new oood API

removed duplicate property sheet entry

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13720 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8580ca37
......@@ -118,7 +118,6 @@ class OOoDocument(File, ConversionCacheMixin):
, PropertySheet.ExternalDocument
, PropertySheet.Url
, PropertySheet.Periodicity
, PropertySheet.Snapshot
)
# regular expressions for stripping xml from ODF documents
......@@ -188,7 +187,7 @@ class OOoDocument(File, ConversionCacheMixin):
"""
def cached_getTargetFormatItemList(content_type):
server_proxy = self._mkProxy()
allowed = server_proxy.getAllowedTargets(content_type) # oood API needs naming convention update
allowed = server_proxy.getAllowedTargetItemList(content_type) # oood API needs naming convention update
return [(y, x) for x, y in allowed] # tuple order is reversed to be compatible with ERP5 Form
# Cache valid format list
......@@ -376,4 +375,4 @@ class OOoDocument(File, ConversionCacheMixin):
kw = server_proxy.run_setmetadata(self.getId(),
enc(self._unpackData(self.getBaseData())),
kw)
self._setBaseData(dec(kw['data']))
\ No newline at end of file
self._setBaseData(dec(kw['data']))
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