Skip to content

Commit 73c21df

Browse files
committed
allow sortable.html and other types to be shown in the browser
1 parent e983846 commit 73c21df

File tree

5 files changed

+21
-8
lines changed

5 files changed

+21
-8
lines changed

CHANGELOG.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
Change log
22
================================================================================
33

4-
0.0.2 - 19.06.2016
4+
0.0.3 - 15.07.2017
5+
--------------------------------------------------------------------------------
6+
7+
Added
8+
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
9+
10+
#. To allow viewing csvtotable in browser and the syntax is:
11+
pyexcel view --in-browser --output-file-type sortable.html --sheet-index 0 goog.ods
12+
13+
0.0.2 - 19.06.2017
514
--------------------------------------------------------------------------------
615

716
Updated
817
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
918

10-
# use pyexcel v0.5.0
19+
#. use pyexcel v0.5.0
1120

1221

1322
0.0.1 - 11.07.2016

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121

2222
project = u'pyexcel-cli'
2323
copyright = u'2015-2017 Onni Software Ltd.'
24-
version = '0.0.1'
25-
release = '0.0.2'
24+
version = '0.0.2'
25+
release = '0.0.3'
2626
exclude_patterns = []
2727
pygments_style = 'sphinx'
2828
html_theme = 'default'

pyexcel_cli.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
overrides: "pyexcel.yaml"
22
name: "pyexcel-cli"
33
nick_name: cli
4-
version: 0.0.2
5-
release: 0.0.1
4+
version: 0.0.3
5+
current_version: 0.0.3
6+
release: 0.0.2
67
command_line_interface: pyexcel
78
entry_point: pyexcel_cli.main:main
89
dependencies:

pyexcel_cli/view.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ def view(ctx, in_browser, **keywords):
5656
"""
5757
output = '-'
5858
if in_browser:
59-
output = tempfile.mkstemp(suffix='handsontable.html')[1]
59+
viewing_file_type = 'handsontable.html'
60+
if keywords['output_file_type'] != 'texttable':
61+
viewing_file_type = keywords['output_file_type']
62+
output = tempfile.mkstemp(suffix=viewing_file_type)[1]
6063
ctx.invoke(transcode, output=output, **keywords)
6164
if in_browser:
6265
import webbrowser

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
NAME = 'pyexcel-cli'
1212
AUTHOR = 'C.W.'
13-
VERSION = ''
13+
VERSION = '0.0.3'
1414
EMAIL = 'wangc_2011@hotmail.com'
1515
LICENSE = 'New BSD'
1616
ENTRY_POINTS = {

0 commit comments

Comments
 (0)