Specs humanlinks : managing family relationships

humanlinks : managing family relationships¶

The lino_xl.lib.humanlinks module adds functionality for managing human links (i.e. relationships).

  • Lars

Lars¶

Lars Braun is the natural son of Bruno Braun and Eveline Evrard. Here is what Lars would say about them:

>>> Person = rt.models.contacts.Person
>>> Link = rt.models.humanlinks.Link
>>> lars = Person.objects.get(first_name="Lars", last_name="Braun")
>>> for lnk in Link.objects.filter(child=lars):
...    print(u"{} is my {}".format(lnk.parent,
...         lnk.type.as_parent(lnk.parent)))
Mr Bruno Braun is my Father
Mrs Eveline Evrard is my Mother
Mr Albert Adam is my Foster father
Mrs Françoise Freisen is my Foster mother
Mrs Daniela Radermacher is my Foster mother

Both parents married another partner. These new households automatically did not create automatic foster parent links between Lars and the new partners of his natural parents.

Logo

Table of Contents

  • Welcome
  • About Lino
  • Public demo sites
  • Newbie Guide
  • Developer Guide
  • Contributor Guide
  • User Guide
  • Specs
    • Core plugins
    • Plugins of the Extensions Library
    • Application specs
    • Topic guides
    • Technical stuff
    • Lino in other languages
  • API
  • Changes
  • News

Quick search

© Copyright 2002-2021 Rumma & Ko Ltd. Last updated on Apr 17, 2021. Created using Sphinx 3.5.4. Insipid Theme. View source code.
Online link: https://www.lino-framework.org/specs/humanlinks/.