diff options
| author | Kenneth Reitz <me@kennethreitz.com> | 2011-05-22 14:07:17 -0400 |
|---|---|---|
| committer | Kenneth Reitz <me@kennethreitz.com> | 2011-05-22 14:07:17 -0400 |
| commit | 87e65fd3e77f21efc9efc4ab367611702fcd3cfe (patch) | |
| tree | 51d5236072bbfa8907d607331de42f05860d6a05 /tablib/core.py | |
| parent | ffbc3b122d7db7740d070112aec023cbbf663f4e (diff) | |
| parent | cceb41af98afe11ef04e1c9b187e70af293c94d0 (diff) | |
| download | tablib-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.py | 12 |
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(): |
