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

The lino_noi package

Side note: Code snippets (lines starting with >>>) in this document get tested as part of our development workflow. The following initialization snippet tells you which demo project is being used in this document.

>>> import lino
>>> lino.startup('lino_book.projects.noi1e.settings.demo')
>>> from lino.api.doctest import *
class lino_noi.lib.noi.settings.Site
with_accounting

Whether this site has accounting functionality installed.

Accounting in Lino Noi means the following plugins: products, trading, periods, accounting, storage, invoicing, vat.

with_cms

Whether this site has content management functionality installed.

Content management in Lino Noi means the following plugins: publisher, blogs, albums, sources,

get_plugin_configs()
>>> from lino_noi.lib.noi.settings import Site
>>> SITE = Site(globals())
>>> for s in SITE.get_plugin_configs():
...     print(repr(s))
[]
('linod', 'use_channels', True)
('topics', 'partner_model', 'users.User')
('help', 'make_help_pages', True)
('tickets', 'end_user_model', 'contacts.Person')
('working', 'ticket_model', 'tickets.Ticket')
('invoicing', 'order_model', 'subscriptions.Subscription')
('users', 'allow_online_registration', True)
('summaries', 'duration_max_length', 10)
('nicknames', 'named_model', 'tickets.Ticket')

Defines a set of user roles and fills lino.modlib.users.choicelists.UserTypes.

Used as the user_types_module for Lino Noi.

class lino_noi.lib.noi.user_types.UserTypes
anonymous

A site user who is not authenticated.

customer

A site user who uses our software and may report tickets, but won’t work on them. Able to comment and view tickets on sites they are member of. Unable to see any contact data of other users or partners.

user

Alias for customer.

contributor

A site user who works on tickets of sites they are team members of.

developer

A site user is a trusted user who has signed an NDA. Has access to client contacts. Is able to make service reports as well as manage tickets.

admin

Can do everything.

class lino_noi.lib.noi.user_types.ProvisionStates
purchased