groups : user groups

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

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

>>> import lino
>>> lino.startup('lino_book.projects.noi1e.settings.demo')
>>> 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 end user is member of a given users group.

The application developer 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. An optional alphanumeric identifier that, unlike the primary key, is editable.

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