Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More

Stars in Lino Noi

This document specifies how stars are implemented in lino_xl.lib.stars (as used by Lino Noi).

Stars are used in to indicate that the user want to be notified on changes to database object. There are 3 ways that a object can be starred. Not stared, inheriting a star, and directly stared.

The user will only be notified on object which they have either inherited a star or been directly stared.

>>> ses = rt.login('robin')
>>> ses.selected_rows.append(rt.models.tickets.Site.objects.all()[0])
>>> pprint(set(ses.selected_rows[0].get_children_starrable()))