Commit 0164d7c6 authored by Gabriel Monnerat's avatar Gabriel Monnerat

update IERP5Compatibility according to r39026

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@39059 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0476f32f
...@@ -54,26 +54,27 @@ class IManager(Interface): ...@@ -54,26 +54,27 @@ class IManager(Interface):
"""Returns a list extension which can be generated from given extension or """Returns a list extension which can be generated from given extension or
document type.""" document type."""
class IERP5Compatibility(Interface): class IERP5Compatibility(Interface):
""" Provides compatibility interface with ERP5 Project. """ Provides compatibility interface with ERP5 Project.
This methods provide same API as OpenOffice.org project. This methods provide same API as OpenOffice.org project.
XXX Unfinished Docstring. XXX Unfinished Docstring.
""" """
def run_convert(filename, file): def run_convert(filename, data, meta, extension, orig_format):
"""Returns the metadata and the ODF in dictionary""" """Returns the metadata and the ODF in dictionary"""
return (200 or 402, dict(), '') return (200 or 402, dict(), '')
def run_setmetadata(filename, file, metadata_dict): def run_setmetadata(filename, data, meta, extension, orig_format):
"""Adds metadata in ODF and returns a new ODF with metadata in """Adds metadata in ODF and returns a new ODF with metadata in
dictionary""" dictionary"""
return (200 or 402, dict(), '') return (200 or 402, dict(), '')
def run_getmetadata(self, filename, file): def run_getmetadata(self, filename, data, meta, extension, orig_format):
"""Extracts metadata from ODF and returns in dictionary""" """Extracts metadata from ODF and returns in dictionary"""
return (200 or 402, dict(), '') return (200 or 402, dict(), '')
def run_generate(filename, file, something, format, orig_format): def run_generate(filename, data, meta, extension; orig_format):
"""It exports a ODF to given format""" """It exports a ODF to given format"""
return (200 or 402, dict(), '') return (200 or 402, dict(), '')
......
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