Changeset 45:8eeae19b6037
- Timestamp:
- 08/08/08 10:53:39 (5 years ago)
- Author:
- Nicolas ?vrard <nicoe@…>
- Branch:
- default
- Message:
-
Added ConTeXt? example (need to have it installed though).
- Location:
- examples
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r41
|
r45
|
|
| 23 | 23 | repos.add_report(Invoice, 'application/vnd.oasis.opendocument.presentation', |
| 24 | 24 | 'presentation.odp', report_name='presentation') |
| | 25 | repos.add_report(Invoice, 'application/pdf', 'basic.tex', |
| | 26 | report_name='ConTeXt') |
| 25 | 27 | |
| 26 | 28 | inv = Invoice(customer={'name': 'John Bonham', |
| … |
… |
|
| 67 | 69 | _, odp_report = repos.reports[Invoice]['presentation'] |
| 68 | 70 | file('bonham_presentation.odp', 'w').write(odp_report(inv).render().getvalue()) |
| | 71 | |
| | 72 | #PDF |
| | 73 | _, pdf_report = repos.reports[Invoice]['ConTeXt'] |
| | 74 | file('bonham_basic.pdf', 'w').write(pdf_report(inv).render().getvalue()) |
| | 75 | |