summaryrefslogtreecommitdiff
path: root/tablib/core.py
diff options
context:
space:
mode:
authorMark Rogers <f4nt@f4ntasmic.com>2011-05-14 14:52:16 -0500
committerMark Rogers <f4nt@f4ntasmic.com>2011-05-14 14:52:16 -0500
commit9a05770899a5864e72727830da71a23b7203d050 (patch)
tree71cd9a51fce553cb04ab9df3f10037cd0ff60802 /tablib/core.py
parent8e055f1c57e82d51bf0320b04c49763a7257b486 (diff)
downloadtablib-9a05770899a5864e72727830da71a23b7203d050.tar.gz
proof of concept works. Onto styling and tidying
Diffstat (limited to 'tablib/core.py')
-rw-r--r--tablib/core.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tablib/core.py b/tablib/core.py
index 03547ff..e8e17ce 100644
--- a/tablib/core.py
+++ b/tablib/core.py
@@ -401,6 +401,18 @@ class Dataset(object):
"""
pass
+ @property
+ def odf():
+ """An Excel Spreadsheet representation of the :class:`Dataset` object, with :ref:`separators`. Cannot be set.
+
+ .. admonition:: Binary Warning
+
+ :class:`Dataset.xlsx` contains binary data, so make sure to write in binary mode::
+
+ with open('output.xlsx', 'wb') as f:
+ f.write(data.xlsx)'
+ """
+ pass
@property
def csv():