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 | 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 | exposed |
Undocumented |
Instance Variable | storage |
Undocumented |
Method | _cp |
Custom dispatch for static pages in the 'pages' directory. |
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 .
def redaktion(self, *args, title='', filename='', content='', _method='', learning_contents=''): ¶
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.
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.