groups : user groups

The lino_xl.lib.groups plugin adds the notions of users groups and user memberships.

A tested document

This is a tested document. The following instructions are used for initialization:

>>> import lino
>>> lino.startup('lino_book.projects.team.settings.doctests')
>>> from lino.api.doctest import *
>>> from django.db.models import Q

Overview

Users group

A named entity that holds a list of user memberships.

User membership

The fact that a given user is member of a given users group.

Application developers can add a panel "Memberships" (MembershipsByUser) to the detail window of lino.modlib.users.User.

In Lino Noi the verbose name of "Group" is changed to "Team".

>>> dd.plugins.groups.menu_group
'system'
>>> print(dd.plugins.groups.verbose_name)
Teams
>>> show_menu_path(groups.Groups)
Configure --> System --> Teams

Groups

>>> rt.show(groups.Groups)
=========== ================ ================== ================== ==============
 Reference   Designation      Designation (de)   Designation (fr)   Team manager
----------- ---------------- ------------------ ------------------ --------------
             Developers       Developers         Developers
             Managers         Managers           Managers
             Front-end team   Front-end team     Front-end team
=========== ================ ================== ================== ==============
class lino_xl.lib.groups.Group

Django model representing a users group.

ref

The reference.

See lino.mixins.ref.StructuredReferrable.ref

name

The designation in different languages.

user

The owner of the group

class lino_xl.lib.groups.Groups

Shows all groups.

class lino_xl.lib.groups.Membership

Django model representing a user membership.

user
group
remark