Skip to content

Commit 81510a3

Browse files
committed
propagate the lml interface changes
1 parent aba485c commit 81510a3

File tree

3 files changed

+4
-20
lines changed

3 files changed

+4
-20
lines changed

pyexcel_text/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
:copyright: (c) 2014-2016 by C. W.
88
:license: New BSD
99
"""
10-
from pyexcel.internal.common import PyexcelPluginList
10+
from pyexcel.internal.common import PyexcelPluginChain
1111

1212

13-
PyexcelPluginList(__name__).add_a_renderer(
14-
submodule='_text.Tabulater',
13+
PyexcelPluginChain(__name__).add_a_renderer(
14+
relative_plugin_class_path='_text.Tabulater',
1515
file_types=[
1616
'html',
1717
'simple',
@@ -26,7 +26,7 @@
2626
],
2727
stream_type='string'
2828
).add_a_renderer(
29-
submodule='_json.Jsonifier',
29+
relative_plugin_class_path='_json.Jsonifier',
3030
file_types=['json'],
3131
stream_type='string'
3232
)

pyexcel_text/_json.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,8 @@
1111
import datetime
1212
from pyexcel.renderer import Renderer
1313

14-
file_types = ('json',)
15-
1614

1715
class Jsonifier(Renderer):
18-
file_types = ('json',)
1916

2017
def render_sheet(self, sheet):
2118
content = jsonify(sheet, self._file_type, self._write_title)

pyexcel_text/_text.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,6 @@
1515

1616

1717
class Tabulater(Renderer):
18-
file_types = (
19-
'html',
20-
'simple',
21-
'plain',
22-
'grid',
23-
'pipe',
24-
'orgtbl',
25-
'rst',
26-
'mediawiki',
27-
'latex',
28-
'latex_booktabs'
29-
)
30-
3118
def render_sheet(self, sheet):
3219
content = tabulating(sheet, self._file_type, self._write_title)
3320
self._stream.write(content)

0 commit comments

Comments
 (0)