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:
- sprl2.py uses user-defined virtual columns.
- sprl1.py uses user-defined virtual columns and an onEach method.
Refering articles:
- new package lino.reports (code changes 05.01.05) — Last night I had 2 important ideas at once: a completely new implementation for reports. See reports1.py for a quick example. Reports had to go out of Adamo because they make sense also without adamo. And together with this a solution for the redundant table names. more