package documentation

luna_lms – Ein multimodales Lern-Management-System Copyright (c) 2022 Florian Berger <florian.berger@posteo.de>

Package storage luna_lms – Ein multimodales Lern-Management-System
Module webapp luna_lms – Ein multimodales Lern-Management-System

From __init__.py:

Class MODI Class to define the valid presentation modes for learning content.
Function check_title Check if a string conforms to the title rule: At least one character. Alphanumeric characters, spaces, hyphens, underscore. Starts with an alphanumeric character.
Constant ADDITIONAL_CONFIG Entries to this dict will be added to the config for CherryPy.
Constant IMAGE_TYPES The MIME types of files that luna_lms will recognize as images.
Constant LOGGER The general logger for luna_lms.
Constant STDERR_FORMATTER A logging formatter for STDERR output.
Constant STDERR_HANDLER A logging handler for STDERR output.
Constant VERSION The program version of luna_lms.
Constant WRITE_LOCK A lock to enforce only one thread can write data.
VERSION: str =

The program version of luna_lms.

Value
'0.1.6'
LOGGER =

The general logger for luna_lms.

Value
logging.getLogger('luna_lms')
STDERR_FORMATTER =

A logging formatter for STDERR output.

Value
logging.Formatter('luna_lms [{levelname}] {funcName}(): {message} (l.{lineno})',
                  style='{')
STDERR_HANDLER =

A logging handler for STDERR output.

Value
logging.StreamHandler()
WRITE_LOCK =

A lock to enforce only one thread can write data.

Value
threading.Lock()
ADDITIONAL_CONFIG: dict =

Entries to this dict will be added to the config for CherryPy.

Value
{}
IMAGE_TYPES: tuple[str, ...] =

The MIME types of files that luna_lms will recognize as images.

Value
('image/jpeg',
 'image/gif',
 'image/webp',
 'image/png',
 'image/svg+xml',
 'image/bmp')
def check_title(s):

Check if a string conforms to the title rule: At least one character. Alphanumeric characters, spaces, hyphens, underscore. Starts with an alphanumeric character. Returns an empty string when the string conforms, else an error message.