propagate the lml interface changes
This commit is contained in:
parent
1e78632474
commit
8635232a17
|
@ -351,5 +351,5 @@ Support the project
|
|||
================================================================================
|
||||
|
||||
If your company has embedded pyexcel and its components into a revenue generating
|
||||
product, please `support me on patreon <https://www.patreon.com/pyexcel>`_ to
|
||||
product, please `support me on patreon <https://www.patreon.com/bePatron?u=5537627>`_ to
|
||||
maintain the project and develop it further.
|
||||
|
|
|
@ -8,16 +8,16 @@
|
|||
# flake8: noqa
|
||||
# this line has to be place above all else
|
||||
# because of dynamic import
|
||||
from pyexcel_io.plugins import IORegistry
|
||||
from pyexcel_io.plugins import IOPluginInfoChain
|
||||
from pyexcel_io.io import get_data as read_data, isstream, store_data as write_data
|
||||
|
||||
__FILE_TYPE__ = 'ods'
|
||||
IORegistry(__name__).add_a_reader(
|
||||
submodule='odsr.ODSBook',
|
||||
IOPluginInfoChain(__name__).add_a_reader(
|
||||
relative_plugin_class_path='odsr.ODSBook',
|
||||
file_types=[__FILE_TYPE__],
|
||||
stream_type='binary'
|
||||
).add_a_writer(
|
||||
submodule='odsw.ODSWriter',
|
||||
relative_plugin_class_path='odsw.ODSWriter',
|
||||
file_types=[__FILE_TYPE__],
|
||||
stream_type='binary'
|
||||
)
|
||||
|
|
|
@ -124,10 +124,6 @@ class ODSSheet(SheetReader):
|
|||
|
||||
class ODSBook(BookReader):
|
||||
"""read ods book"""
|
||||
file_types = ['ods']
|
||||
stream_type = 'binary'
|
||||
library = 'pyexcel-ods'
|
||||
|
||||
def open(self, file_name, **keywords):
|
||||
"""open ods file"""
|
||||
BookReader.open(self, file_name, **keywords)
|
||||
|
|
|
@ -80,10 +80,6 @@ class ODSWriter(BookWriter):
|
|||
open document spreadsheet writer
|
||||
|
||||
"""
|
||||
file_types = ['ods']
|
||||
stream_type = 'binary'
|
||||
library = 'pyexcel-ods'
|
||||
|
||||
def __init__(self):
|
||||
BookWriter.__init__(self)
|
||||
self._native_book = OpenDocumentSpreadsheet()
|
||||
|
|
Loading…
Reference in New Issue