Lino Website

Documentation · Modules · adamo · Examples

reports1.py

A simple report that prints out the content of a dictionary.

Source code:

from lino.reports.reports import DictReport

d = dict(
    name="Ausdemwald",
    firstName="Norbert",
    size=12,
    description="""\
Norbert ist unser treuer Mitarbeiter im Vurt. Er wohnt in der Fremereygasse in Eupen."""
    )

rpt = DictReport(d)
rpt.show()

Output:

key         |value                                   
------------+----------------------------------------
size        |12                                      
name        |Ausdemwald                              
firstName   |Norbert                                 
description |Norbert ist unser treuer Mitarbeiter im 
            |Vurt. Er wohnt in der Fremereygasse in  
            |Eupen.                                  

Other reports examples:

Refering articles:

Copyright 2001-2007 Luc Saffre.
http://lino.saffre-rumma.ee
Generated 2007-06-07 16:23:37