-
luna_lms
index.html
Package
Package
PUBLIC
luna_lms – Ein multimodales Lern-Management-System
-
luna_lms.storage
luna_lms.storage.html
Package
Package
PUBLIC
luna_lms – Ein multimodales Lern-Management-System
-
luna_lms.storage.file_storage
luna_lms.storage.file_storage.html
Module
Module
PUBLIC
luna_lms – Ein multimodales Lern-Management-System
-
luna_lms.storage.sqlite_storage
luna_lms.storage.sqlite_storage.html
Module
Module
PUBLIC
luna_lms – Ein multimodales Lern-Management-System
-
luna_lms.storage.storage
luna_lms.storage.storage.html
Module
Module
PUBLIC
luna_lms – Ein multimodales Lern-Management-System
-
luna_lms.webapp
luna_lms.webapp.html
Module
Module
PUBLIC
luna_lms – Ein multimodales Lern-Management-System
-
luna_lms.VERSION
index.html#VERSION
Attribute
Constant
PUBLIC
The program version of luna_lms.
-
luna_lms.LOGGER
index.html#LOGGER
Attribute
Constant
PUBLIC
The general logger for luna_lms.
-
luna_lms.STDERR_FORMATTER
index.html#STDERR_FORMATTER
Attribute
Constant
PUBLIC
A logging formatter for STDERR output.
-
luna_lms.STDERR_HANDLER
index.html#STDERR_HANDLER
Attribute
Constant
PUBLIC
A logging handler for STDERR output.
-
luna_lms.WRITE_LOCK
index.html#WRITE_LOCK
Attribute
Constant
PUBLIC
A lock to enforce only one thread can write data.
-
luna_lms.ADDITIONAL_CONFIG
index.html#ADDITIONAL_CONFIG
Attribute
Constant
PUBLIC
Entries to this dict will be added to the config for CherryPy.
-
luna_lms.MODI
luna_lms.MODI.html
Class
Class
PUBLIC
Class to define the valid presentation modes for learning content.
-
luna_lms.IMAGE_TYPES
index.html#IMAGE_TYPES
Attribute
Constant
PUBLIC
The MIME types of files that luna_lms will recognize as images.
-
luna_lms.check_title
index.html#check_title
Function
Function
PUBLIC
Check if a string conforms to the title rule: At least one character. Alphanumeric characters, spaces, hyphens, underscore. Starts with an alphanumeric character.
-
luna_lms.storage.storage.Storage
luna_lms.storage.storage.Storage.html
Class
Class
PUBLIC
Prototype class to handle all storage. Should be subclassed by implementations.
-
luna_lms.storage.storage.Storage.find_courses
luna_lms.storage.storage.Storage.html#find_courses
Function
Method
PUBLIC
Search for courses, and return a dict mapping their titles to their IDs, and IDs to titles.
-
luna_lms.storage.storage.Storage.get_course_metadata
luna_lms.storage.storage.Storage.html#get_course_metadata
Function
Method
PUBLIC
Return the metadata of the course as a dict.
-
luna_lms.storage.storage.Storage.get_image
luna_lms.storage.storage.Storage.html#get_image
Function
Method
PUBLIC
Return the URI to the first image found in the learning content, or an empty string.
-
luna_lms.storage.storage.Storage.get_html
luna_lms.storage.storage.Storage.html#get_html
Function
Method
PUBLIC
Return the content of the first HTML file found in the learning content, or an empty string.
-
luna_lms.storage.storage.Storage.get_directory
luna_lms.storage.storage.Storage.html#get_directory
Function
Method
PUBLIC
Return a tuple (directory_name, html) with the name of the first directory found in the learning content, and the content of the first HTML file found in there. Both elements may be empty.
-
luna_lms.storage.storage.Storage.get_course_titles
luna_lms.storage.storage.Storage.html#get_course_titles
Function
Method
PUBLIC
Return a list of titles of existing courses.
-
luna_lms.storage.storage.Storage.get_learning_contents
luna_lms.storage.storage.Storage.html#get_learning_contents
Function
Method
PUBLIC
Return a list of learning contents identifiers for a course in arbitrary order.
-
luna_lms.storage.storage.Storage.get_learning_contents_ordered
luna_lms.storage.storage.Storage.html#get_learning_contents_ordered
Function
Method
PUBLIC
Return a list of learning contents identifiers for a course in order.
-
luna_lms.storage.storage.Storage.get_learning_contents_titles
luna_lms.storage.storage.Storage.html#get_learning_contents_titles
Function
Method
PUBLIC
Return a dictionary mapping learning contents identifiers to their titles.
-
luna_lms.storage.storage.Storage.get_variants
luna_lms.storage.storage.Storage.html#get_variants
Function
Method
PUBLIC
Return a list of all variants for a learning content in a course.
-
luna_lms.storage.storage.Storage.get_variants_ids
luna_lms.storage.storage.Storage.html#get_variants_ids
Function
Method
PUBLIC
Return a list of identifiers of all variants for a learning content in a course.
-
luna_lms.storage.storage.Storage.get_variant_metadata
luna_lms.storage.storage.Storage.html#get_variant_metadata
Function
Method
PUBLIC
Return the metadata of the variant as a dict.
-
luna_lms.storage.storage.Storage.delete_variant
luna_lms.storage.storage.Storage.html#delete_variant
Function
Method
PUBLIC
Attempt to delete the variant identified by variant_id. Return a message in case of success.
-
luna_lms.storage.storage.Storage.delete_course
luna_lms.storage.storage.Storage.html#delete_course
Function
Method
PUBLIC
Delete the course identified by course_id. Return a message in case of success.
-
luna_lms.storage.storage.Storage.delete_learning_content
luna_lms.storage.storage.Storage.html#delete_learning_content
Function
Method
PUBLIC
Delete the learning content identified by learning_content_id. Return a message in case of success.
-
luna_lms.storage.storage.Storage.write_course
luna_lms.storage.storage.Storage.html#write_course
Function
Method
PUBLIC
Create a new course. Return a message indicating success or failure.
-
luna_lms.storage.storage.Storage.write_learning_content
luna_lms.storage.storage.Storage.html#write_learning_content
Function
Method
PUBLIC
Create a new learning content. Return a message indicating success or failure.
-
luna_lms.storage.storage.Storage.write_learning_contents_list
luna_lms.storage.storage.Storage.html#write_learning_contents_list
Function
Method
PUBLIC
Write an re-ordered list of learning contents into the course. Return a message indicating success or failure.
-
luna_lms.storage.storage.Storage.write_variant
luna_lms.storage.storage.Storage.html#write_variant
Function
Method
PUBLIC
Write a variant consisting of a single or multiple files, and create the according meta files.
-
luna_lms.storage.file_storage.FileStorage
luna_lms.storage.file_storage.FileStorage.html
Class
Class
PUBLIC
This class stores data in a folder hierarchy on disk.
-
luna_lms.storage.file_storage.FileStorage.__init__
luna_lms.storage.file_storage.FileStorage.html#__init__
Function
Method
PUBLIC
Initialise FileStorage.
-
luna_lms.storage.file_storage.FileStorage.find_courses
luna_lms.storage.file_storage.FileStorage.html#find_courses
Function
Method
PUBLIC
Search for courses, and return a dict mapping their titles to their IDs, and IDs to titles.
-
luna_lms.storage.file_storage.FileStorage.get_image
luna_lms.storage.file_storage.FileStorage.html#get_image
Function
Method
PUBLIC
Return the URI to the first image found in the learning content, or an empty string.
-
luna_lms.storage.file_storage.FileStorage.get_html
luna_lms.storage.file_storage.FileStorage.html#get_html
Function
Method
PUBLIC
Return the content of the first HTML file found in the learning content, or an empty string.
-
luna_lms.storage.file_storage.FileStorage.get_directory
luna_lms.storage.file_storage.FileStorage.html#get_directory
Function
Method
PUBLIC
Return a tuple (directory_name, html) with the name of the first directory found in the learning content, and the content of the first HTML file found in there. Both elements may be empty.
-
luna_lms.storage.file_storage.FileStorage.get_course_titles
luna_lms.storage.file_storage.FileStorage.html#get_course_titles
Function
Method
PUBLIC
Return a list of titles of existing courses.
-
luna_lms.storage.file_storage.FileStorage.get_learning_contents
luna_lms.storage.file_storage.FileStorage.html#get_learning_contents
Function
Method
PUBLIC
Return a list of learning contents identifiers for a course in arbitrary order.
-
luna_lms.storage.file_storage.FileStorage.get_learning_contents_ordered
luna_lms.storage.file_storage.FileStorage.html#get_learning_contents_ordered
Function
Method
PUBLIC
Return a list of learning contents identifiers for a course in order.
-
luna_lms.storage.file_storage.FileStorage.get_learning_contents_titles
luna_lms.storage.file_storage.FileStorage.html#get_learning_contents_titles
Function
Method
PUBLIC
Return a dictionary mapping learning contents identifiers to their titles.
-
luna_lms.storage.file_storage.FileStorage.get_variants
luna_lms.storage.file_storage.FileStorage.html#get_variants
Function
Method
PUBLIC
Return a list of all variants for a learning content in a course.
-
luna_lms.storage.file_storage.FileStorage.get_variants_ids
luna_lms.storage.file_storage.FileStorage.html#get_variants_ids
Function
Method
PUBLIC
Return a list of identifiers of all variants for a learning content in a course.
-
luna_lms.storage.file_storage.FileStorage.get_variant_metadata
luna_lms.storage.file_storage.FileStorage.html#get_variant_metadata
Function
Method
PUBLIC
Return the metadata of the variant as a dict.
-
luna_lms.storage.file_storage.FileStorage.delete_variant
luna_lms.storage.file_storage.FileStorage.html#delete_variant
Function
Method
PUBLIC
Attempt to delete the variant identified by variant_id. Return a message in case of success.
-
luna_lms.storage.file_storage.FileStorage.delete_course
luna_lms.storage.file_storage.FileStorage.html#delete_course
Function
Method
PUBLIC
Delete the course identified by course_title. Return a message in case of success.
-
luna_lms.storage.file_storage.FileStorage.delete_learning_content
luna_lms.storage.file_storage.FileStorage.html#delete_learning_content
Function
Method
PUBLIC
Delete the learning content identified by learning_content_id. Return a message in case of success.
-
luna_lms.storage.file_storage.FileStorage.write_course
luna_lms.storage.file_storage.FileStorage.html#write_course
Function
Method
PUBLIC
Create a new course. Return a message indicating success or failure.
-
luna_lms.storage.file_storage.FileStorage.write_learning_content
luna_lms.storage.file_storage.FileStorage.html#write_learning_content
Function
Method
PUBLIC
Create a new learning content. Return a message indicating success or failure.
-
luna_lms.storage.file_storage.FileStorage.write_learning_contents_list
luna_lms.storage.file_storage.FileStorage.html#write_learning_contents_list
Function
Method
PUBLIC
Write an re-ordered list of learning contents into the course. Return a message indicating success or failure.
-
luna_lms.storage.file_storage.FileStorage.write_variant
luna_lms.storage.file_storage.FileStorage.html#write_variant
Function
Method
PUBLIC
Write a variant consisting of a single or multiple files, and create the according meta files.
-
luna_lms.storage.sqlite_storage.SQLiteStorage
luna_lms.storage.sqlite_storage.SQLiteStorage.html
Class
Class
PUBLIC
This class stores data in a sqlite database on disk.
-
luna_lms.storage.sqlite_storage.SQLiteStorage.__init__
luna_lms.storage.sqlite_storage.SQLiteStorage.html#__init__
Function
Method
PUBLIC
Initialise SQLiteStorage.
-
luna_lms.storage.sqlite_storage.SQLiteStorage.connections
luna_lms.storage.sqlite_storage.SQLiteStorage.html#connections
Attribute
Instance Variable
PUBLIC
Undocumented
-
luna_lms.storage.sqlite_storage.SQLiteStorage.find_courses
luna_lms.storage.sqlite_storage.SQLiteStorage.html#find_courses
Function
Method
PUBLIC
Search for courses, and return a dict mapping their titles to their IDs, and IDs to titles.
-
luna_lms.storage.sqlite_storage.SQLiteStorage.write_course
luna_lms.storage.sqlite_storage.SQLiteStorage.html#write_course
Function
Method
PUBLIC
Create a new SQLite database representing the course. Return a message indicating success or failure.
-
luna_lms.storage.sqlite_storage.SQLiteStorage.close_sqlite_connections
luna_lms.storage.sqlite_storage.SQLiteStorage.html#close_sqlite_connections
Function
Method
PUBLIC
Close all connections present in SQLiteStorage.connections .
-
luna_lms.webapp.fossil_status
luna_lms.webapp.html#fossil_status
Attribute
Variable
PUBLIC
Undocumented
-
luna_lms.webapp.items
luna_lms.webapp.html#items
Attribute
Variable
PUBLIC
Undocumented
-
luna_lms.webapp.PORT
luna_lms.webapp.html#PORT
Attribute
Constant
PUBLIC
The TCP port luna_lms will listen on.
-
luna_lms.webapp.THREADS
luna_lms.webapp.html#THREADS
Attribute
Constant
PUBLIC
The number of simultaneous CherryPy server threads.
-
luna_lms.webapp.AUTORELOAD
luna_lms.webapp.html#AUTORELOAD
Attribute
Constant
PUBLIC
Flag whether CherryPy should watch the source file, and reload upon changes. Should be disabled for production use.
-
luna_lms.webapp.CSS
luna_lms.webapp.html#CSS
Attribute
Constant
PUBLIC
Additional CSS for all luna_lms HTML pages.
-
luna_lms.webapp.HTML_HEAD
luna_lms.webapp.html#HTML_HEAD
Attribute
Constant
PUBLIC
The general HTML head for all luna_lms pages, including the opening <body> tag.
-
luna_lms.webapp.WebApp
luna_lms.webapp.WebApp.html
Class
Class
PUBLIC
Web application main class, suitable as cherrypy root.
-
luna_lms.webapp.WebApp.__init__
luna_lms.webapp.WebApp.html#__init__
Function
Method
PUBLIC
Initialise WebApp.
-
luna_lms.webapp.WebApp.storage
luna_lms.webapp.WebApp.html#storage
Attribute
Instance Variable
PUBLIC
Undocumented
-
luna_lms.webapp.WebApp.exposed
luna_lms.webapp.WebApp.html#exposed
Attribute
Instance Variable
PUBLIC
Undocumented
-
luna_lms.webapp.WebApp._cp_dispatch
luna_lms.webapp.WebApp.html#_cp_dispatch
Function
Method
PRIVATE
Custom dispatch for static pages in the 'pages' directory.
-
luna_lms.webapp.WebApp.static_page
luna_lms.webapp.WebApp.html#static_page
Function
Method
PUBLIC
Read a static page from the directory 'pages', and render it.
-
luna_lms.webapp.WebApp.__call__
luna_lms.webapp.WebApp.html#__call__
Function
Method
PUBLIC
Called by cherrypy for the / root page.
-
luna_lms.webapp.WebApp.courses
luna_lms.webapp.WebApp.html#courses
Function
Method
PUBLIC
The list of available courses.
-
luna_lms.webapp.WebApp.ansicht
luna_lms.webapp.WebApp.html#ansicht
Function
Method
PUBLIC
The view for Luna LMS, displaying learning contents to attend.
-
luna_lms.webapp.WebApp.lerninhalt_ansicht
luna_lms.webapp.WebApp.html#lerninhalt_ansicht
Function
Method
PUBLIC
The view of a learning content.
-
luna_lms.webapp.WebApp.redaktion
luna_lms.webapp.WebApp.html#redaktion
Function
Method
PUBLIC
The content management frontend for Luna LMS, and a dispatcher for all subordinate endpoints.
-
luna_lms.webapp.WebApp.redaktion_get
luna_lms.webapp.WebApp.html#redaktion_get
Function
Method
PUBLIC
Handler method to be called by redaktion().
-
luna_lms.webapp.WebApp.redaktion_post
luna_lms.webapp.WebApp.html#redaktion_post
Function
Method
PUBLIC
Handler method to be called by redaktion().
-
luna_lms.webapp.WebApp.kurs_redaktion
luna_lms.webapp.WebApp.html#kurs_redaktion
Function
Method
PUBLIC
Content management of a course.
-
luna_lms.webapp.WebApp.kurs_redaktion_get
luna_lms.webapp.WebApp.html#kurs_redaktion_get
Function
Method
PUBLIC
Handler method to be called by kurs_redaktion().
-
luna_lms.webapp.WebApp.kurs_redaktion_post
luna_lms.webapp.WebApp.html#kurs_redaktion_post
Function
Method
PUBLIC
Handler method to be called by kurs_redaktion().
-
luna_lms.webapp.WebApp.kurs_redaktion_delete
luna_lms.webapp.WebApp.html#kurs_redaktion_delete
Function
Method
PUBLIC
Handler method to be called by kurs_redaktion().
-
luna_lms.webapp.WebApp.lerninhalte_redaktion_put
luna_lms.webapp.WebApp.html#lerninhalte_redaktion_put
Function
Method
PUBLIC
PUT: Update the learning contents list of a course.
-
luna_lms.webapp.WebApp.lerninhalt_redaktion
luna_lms.webapp.WebApp.html#lerninhalt_redaktion
Function
Method
PUBLIC
Content management of a learning content.
-
luna_lms.webapp.WebApp.lerninhalt_redaktion_get
luna_lms.webapp.WebApp.html#lerninhalt_redaktion_get
Function
Method
PUBLIC
Handler method to be called by lerninhalt_redaktion().
-
luna_lms.webapp.WebApp.lerninhalt_redaktion_post
luna_lms.webapp.WebApp.html#lerninhalt_redaktion_post
Function
Method
PUBLIC
Handler method to be called by lerninhalt_redaktion().
-
luna_lms.webapp.WebApp.lerninhalt_redaktion_delete
luna_lms.webapp.WebApp.html#lerninhalt_redaktion_delete
Function
Method
PUBLIC
Handler method to be called by lerninhalt_redaktion().
-
luna_lms.webapp.WebApp.variant_redaktion
luna_lms.webapp.WebApp.html#variant_redaktion
Function
Method
PUBLIC
Content management of a variant.
-
luna_lms.webapp.WebApp.variant_redaktion_delete
luna_lms.webapp.WebApp.html#variant_redaktion_delete
Function
Method
PUBLIC
Handler method to be called by variant_redaktion().
-
luna_lms.webapp.main
luna_lms.webapp.html#main
Function
Function
PUBLIC
Main function, for IDE convenience.