mirror of
https://github.com/kennethreitz/tablib.git
synced 2026-06-05 23:10:17 +00:00
Refs #256 - Implement class-based formats
This allows to extend Tablib with new formats far more easily.
This commit is contained in:
+1
-1
@@ -338,7 +338,7 @@ All we have to do is add them to a :class:`Databook` object... ::
|
||||
... and export to Excel just like :class:`Datasets <Dataset>`. ::
|
||||
|
||||
with open('students.xls', 'wb') as f:
|
||||
f.write(book.xls)
|
||||
f.write(book.export('xls'))
|
||||
|
||||
The resulting ``students.xls`` file will contain a separate spreadsheet for each :class:`Dataset` object in the :class:`Databook`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user