Review the API for get_table_summary()

I did #5685 (Review the API for get_table_summary(). The following tables had a customized Actor.get_table_summary() method, which I converted to Actor.table_as_summary():

The following table summaries: also have a customized Actor.get_table_summary() method, but I dit not yet convert it to an Actor.table_as_summary():

Side effects:

  • lino.utils.AttrDict now supports setting an attribute.

  • The Model.overview field didn’t yet support getting a safe html string from Model.get_overview_elems().

  • New plugin setting printing.print_demo_objects and model attribute lino.modlib.printing.Printable.print_demo_objects.

  • I started to move away from using the ar.html_text() method. Under ExtJS this method wraps the given html fragment into a <div class="htmlText">, which specifies that this fragment contains simple html text inside an ExtJS component. ExtJS does a lot of CSS magic to neutralize the “usual” effects of most html tags. This htmlText class is required to restore a half-way normal look. Under any other front end the ar.html_text() method does nothing. My plan is to add the class="htmlText" unconditionally, also under React.

I reviewed The summary view.

Blog entry started on Friday, July 12, 2024. Changes are in lino, xl, noi, cosi, care, avanti, tera, book, welfare and amici.