Changeset 45:8eeae19b6037

Show
Ignore:
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:
1 added
3 modified

Legend:

Unmodified
Added
Removed
  • examples/demo.py

    r41 r45  
    2323repos.add_report(Invoice, 'application/vnd.oasis.opendocument.presentation', 
    2424                 'presentation.odp', report_name='presentation') 
     25repos.add_report(Invoice, 'application/pdf', 'basic.tex', 
     26                 report_name='ConTeXt') 
    2527 
    2628inv = Invoice(customer={'name': 'John Bonham', 
     
    6769_, odp_report = repos.reports[Invoice]['presentation'] 
    6870file('bonham_presentation.odp', 'w').write(odp_report(inv).render().getvalue()) 
     71 
     72#PDF 
     73_, pdf_report = repos.reports[Invoice]['ConTeXt'] 
     74file('bonham_basic.pdf', 'w').write(pdf_report(inv).render().getvalue()) 
     75