Web application main class, suitable as cherrypy root.
| Method | __call__ |
Called by cherrypy for the / root page. |
| Method | __init__ |
Initialise WebApp. |
| Method | cached |
Return a cached item in the response. |
| Method | courses |
The entry point for all paths starting with /courses . |
| Method | kurs |
Content management of a course. |
| Method | kurs |
Handler method to be called by kurs_redaktion(). |
| Method | kurs |
Handler method to be called by kurs_redaktion(). |
| Method | kurs |
Handler method to be called by kurs_redaktion(). |
| Method | learning |
PUT: Update the learning contents list of a course. |
| Method | lerninhalt |
Content management of a learning content. |
| Method | lerninhalt |
Handler method to be called by lerninhalt_redaktion(). |
| Method | lerninhalt |
Handler method to be called by lerninhalt_redaktion(). |
| Method | lerninhalt |
Handler method to be called by lerninhalt_redaktion(). |
| Method | redaktion |
The content management frontend for Luna LMS, and a dispatcher for all subordinate endpoints. |
| Method | redaktion |
Handler method to be called by redaktion(). |
| Method | redaktion |
Handler method to be called by redaktion(). |
| Method | report |
Undocumented |
| Method | shutdown |
Trigger various shutdown routines, and exit the application. |
| Method | static |
Read a static page from the directory 'pages', and render it. |
| Method | variant |
Content management of a variant. |
| Method | variant |
Handler method to be called by variant_redaktion(). |
| Method | view |
The view for Luna LMS, displaying learning content. |
| Instance Variable | addon |
Undocumented |
| Instance Variable | exposed |
Undocumented |
| Instance Variable | storage |
Undocumented |
| Method | _continue |
If bookmark is given and exists redirect to the bookmarked URL. Else, display a form to enter a bookmark. |
| Method | _cp |
Custom dispatch for static pages in the 'pages' directory. |
| Method | _format |
Apply string trangslations to the default footer, and return it. |
| Method | _format |
Compute format string replacements for the HTML_HEADER template, apply them, and return it. |
| Method | _install |
Parse the 'Accept-Language' header of the request, if given, and install a fitting language from luna_lms.TRANSLATIONS . Return the code of the installed language. |
Return a cached item in the response. This method is meant to be called from _cp_dispatch() only. It will redirect when called directly.
Handler method to be called by kurs_redaktion(). POST: Create a new learning content using the learning_content_title, and then display the content management frontend.
Content management of a learning content. This method will dispatch the handling of the request by method.
Handler method to be called by lerninhalt_redaktion(). GET: Display the content management frontend.
Handler method to be called by lerninhalt_redaktion(). POST: Create a new variant using filename and content, and then display the content management frontend. content can be used to upload a file, or a directory of files. In this case, filename will be taken from content.filename .
The content management frontend for Luna LMS, and a dispatcher for all subordinate endpoints. This method will dispatch any requests to subordinate endpoints to appropriate handlers.
Handler method to be called by redaktion(). POST: Create a new course using the title, and then display the content management frontend.
Undocumented
Read a static page from the directory 'pages', and render it. This method is meant to be called from _cp_dispatch() only. It will redirect when called directly.
Content management of a variant. This method will dispatch the handling of the request by method. DELETE: Delete the variant.
The view for Luna LMS, displaying learning content. By default, a learning content will display any HTML file present as a variant.
If bookmark is given and exists redirect to the bookmarked URL. Else, display a form to enter a bookmark.
Custom dispatch for static pages in the 'pages' directory. _cp_dispatch() is CherryPy's way of providing REST-style wildcard URL segments. In this case, any segment after / that is not matched by an existing WebApp method will be handled by this dispatcher, which will test for a static page with the name of the segment, and use WebApp.static_page() to return it upon success.