Changeset 87:3813918f9fea
- Timestamp:
- 12/05/08 04:44:31 (15 months ago)
- Author:
- Nicolas ?vrard <nicoe@…>
- Children:
- 88:058150b4af09, 101:fc5e627d5325
- Branch:
- default
- Message:
-
Added a column example and fixed renamed trombined in invoice.odt
- Location:
- examples
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r80
|
r87
|
|
| 11 | 11 | repos.add_report(Invoice, 'application/vnd.oasis.opendocument.presentation', |
| 12 | 12 | 'presentation.odp', report_name='presentation') |
| | 13 | repos.add_report(None, 'application/vnd.oasis.opendocument.text', |
| | 14 | 'columns.odt', report_name='column') |
| 13 | 15 | |
| 14 | 16 | if __name__ == '__main__': |
| … |
… |
|
| 29 | 31 | odp_report, _ = repos.classes[Invoice].ids['presentation'] |
| 30 | 32 | file('bonham_presentation.odp', 'wb').write(odp_report(o=inv).render().getvalue()) |
| | 33 | |
| | 34 | # Columns example |
| | 35 | column_report, _ = repos.classes[None].ids['column'] |
| | 36 | lst = [[], ['i'], ['a', 'b'], [1, 2, 3], ['I', 'II', 'III', 'IV']] |
| | 37 | file('test_columns.odt', |
| | 38 | 'wb').write(column_report(lst=lst).render().getvalue()) |