about
: Information about a site¶
The lino.modlib.about
plugin is always installed. It defines some
virtual tables and choicelists, but no database models.
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 *
Which means that code snippets in this document are tested using the
lino_book.projects.noi1e
demo project.
Information about the site¶
- class lino.modlib.about.About¶
A dialog window which displays some information about the site.
Versions of used third-party libraries.
Time stamps of source code.
Complexity factors: Some numbers that express the complexity of this site. These numbers may be used by a hosting provider for computing the price of their services.
Time zones¶
Every Lino site can define its own list of time zones.
>>> rt.show('about.TimeZones')
======= ========= =================
value name text
------- --------- -----------------
01 default UTC
02 Europe/Tallinn
03 Europe/Brussels
04 Africa/Tunis
======= ========= =================
This list is usually populated in the local workflows_module
of a project. For example:
# don't forget to import the default workflows:
from lino_noi.lib.noi.workflows import *
from lino.modlib.about import TimeZones
TimeZones.clear()
add = TimeZones.add_item
add('01', settings.TIME_ZONE or 'UTC', 'default')
add('02', "Europe/Tallinn")
add('03', "Europe/Brussels")
add('04', "Africa/Tunis")