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():
lino.modlib.dupable.SimilarObjectslino_xl.lib.accounting.VouchersByPartnerBaselino_xl.lib.blogs.EntriesByController(currently not used anywhere)lino_xl.lib.cal.Guestsandlino_xl.lib.cal.Eventsuse the same code.lino_xl.lib.cv.LanguageKnowledgesByPersonlino_xl.lib.households.SiblingsByPersonlino_xl.lib.households.MembersByPersonlino_xl.lib.humanlinks.SiblingsByPerson(including an optimization of the presentation)lino_xl.lib.tickets.TicketsByEndUser(which had a bug that was not covered; I fixed the bug and added coverage)
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():
lino.modlib.uploads.AreaUploads(I prefer to leave this for later)lino_xl.lib.deploy.DeploymentsByTicket(not used anywhere)lino_xl.lib.excerpts.ExcerptsByOwneris not used anywhere directly, but inherited bylino_xl.lib.excerpts.ExcerptsByProject. I wonder whether the current implementation is useful in real life.lino_xl.lib.polls.AnswersByResponseEditor,lino_xl.lib.polls.AnswersByResponsePrint,lino_xl.lib.polls.ResponsesByPartner,lino_xl.lib.skills.DemandsByDemander,lino_xl.lib.skills.OffersByDemanderand a few more.
Side effects:
lino.utils.AttrDictnow supports setting an attribute.The
Model.overviewfield didn’t yet support getting a safe html string fromModel.get_overview_elems().New plugin setting
printing.print_demo_objectsand model attributelino.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 thear.html_text()method does nothing. My plan is to add theclass="htmlText"unconditionally, also under React.
I reviewed Customize 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.