summaryrefslogtreecommitdiff
path: root/tablib/core.py
diff options
context:
space:
mode:
authorKenneth Reitz <me@kennethreitz.com>2011-05-22 14:07:17 -0400
committerKenneth Reitz <me@kennethreitz.com>2011-05-22 14:07:17 -0400
commit87e65fd3e77f21efc9efc4ab367611702fcd3cfe (patch)
tree51d5236072bbfa8907d607331de42f05860d6a05 /tablib/core.py
parentffbc3b122d7db7740d070112aec023cbbf663f4e (diff)
parentcceb41af98afe11ef04e1c9b187e70af293c94d0 (diff)
downloadtablib-87e65fd3e77f21efc9efc4ab367611702fcd3cfe.tar.gz
Merge pull request #14 from f4nt/tablib
--- This should provide basic support for OpenDocument spreadsheets. I didnt have py2.7 installed to test with in tox, but 2.5, 2.6, and py3k passed all tests with tox for me. Lemme know if you see any issues I may have glossed over. Conflicts: tablib/compat.py
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 19ebc9e..48dc486 100644
--- a/tablib/core.py
+++ b/tablib/core.py
@@ -405,6 +405,18 @@ class Dataset(object):
"""
pass
+ @property
+ def ods():
+ """An OpenDocument 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.ods', 'wb') as f:
+ f.write(data.ods)'
+ """
+ pass
@property
def csv():