diff options
| author | Kenneth Reitz <me@kennethreitz.com> | 2010-08-30 03:45:35 -0400 |
|---|---|---|
| committer | Kenneth Reitz <me@kennethreitz.com> | 2010-08-30 03:45:35 -0400 |
| commit | 5c70fe0a0793ac0e5d9491f50d109fd5819cf14e (patch) | |
| tree | 94af929dd7abaff4d5e11a76f037e94eb1597864 /tablib/core.py | |
| parent | 6c37412c76fcb26f0179cc727d72916a8c1efca6 (diff) | |
| download | tablib-5c70fe0a0793ac0e5d9491f50d109fd5819cf14e.tar.gz | |
Cleanup.
Diffstat (limited to 'tablib/core.py')
| -rw-r--r-- | tablib/core.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tablib/core.py b/tablib/core.py index a3441d8..37db6ab 100644 --- a/tablib/core.py +++ b/tablib/core.py @@ -167,12 +167,12 @@ class Dataset(object): for j, col in enumerate(row): ws.write(i, j, col) -# wb.save('elllo') doc = xlwt.CompoundDoc.XlsDoc() doc.save(stream, wb.get_biff_data()) - return stream.getvalue() + return stream.getvalue() + def append(self, row, index=None): # todo: impliment index self._validate(row) @@ -186,7 +186,7 @@ class Dataset(object): def save(self, filename=None, format=None): - + """Saves dataset""" if not format: # set format from filename # format = filename @@ -199,6 +199,10 @@ class Dataset(object): # note export format # open file, save the bitch + + def export(self): + """Exports Dataset to given filename or file-object.""" + class InvalidDimensions(Exception): "Invalid size" @@ -209,7 +213,7 @@ class UnsupportedFormat(NotImplementedError): -def source(io_string=None, filename=None): +def source(src=None, file=None, filename=None): """docstring for import""" #open by filename pass
\ No newline at end of file |
