package documentation

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

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

From __init__.py:

Class MODI Class to define the valid presentation modes for learning content.
Class RemovingHTMLParser A HTMLParser that only handles data, effectively removing HTML tags.
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. Returns an empty string when the string conforms, else an error message.
Function numeric_version Convert a string with a numeric version 'MAJOR.MINOR.PATCH' to an integer and return it, for easy comparison.
Function remove_html Return the string t with HTML tags removed.
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 TRANSLATIONS Undocumented
Constant VERSION The program version of luna_lms.
Constant WRITE_LOCK A lock to enforce only one thread can write data.
Variable basedir Undocumented
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.

def numeric_version(v):

Convert a string with a numeric version 'MAJOR.MINOR.PATCH' to an integer and return it, for easy comparison. Will raise a RuntimeError if any if MAJOR MINOR PATCH is > 1000.

def remove_html(t):

Return the string t with HTML tags removed.

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')
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()
TRANSLATIONS =

Undocumented

Value
collections.OrderedDict()
VERSION: str =

The program version of luna_lms.

Value
'0.1.9'
WRITE_LOCK =

A lock to enforce only one thread can write data.

Value
threading.Lock()
basedir =

Undocumented