Methods

Summary

method

class parent

truncated documentation

__call__

AuthMount

Checks the user is authenticated, falls back in the previous behavior, otherwise redirect to the authentification …

__call__

AuthStaticFiles

The ASGI entry point.

__getitem__

Activity

Returns the value associated to a field.

__getitem__

ActivityGroup

Retrieves the question.

__getitem__

Base

Returns the value associated to a field.

__getitem__

Display

Returns the value associated to a field.

__getitem__

LanguageBase

Returns the value associated to a field.

__getitem__

Notion

Returns the value associated to a field.

__init__

QuestionChoice

__init__

Activity

__init__

ActivityGroup

__init__

Base

__init__

Display

__init__

LanguageBase

__init__

Notion

__init__

AuthentificationAnswers

__init__

LogApp

__init__

DisplayQuestionChoiceHTML

constructor

__init__

QCMApp

__init__

ServerHypercorn

__init__

AuthMount

__init__

StaticApp

__iter__

ActivityGroup

To iterate on activities.

__len__

ActivityGroup

Returns the number of activities.

__repr__

Activity

Usual

__repr__

ActivityGroup

Usual

__repr__

Base

Usual

__repr__

Display

Usual

__repr__

LanguageBase

Usual

__repr__

Notion

Usual

answer

QCMApp

Captures an answer.

authenticate

AuthentificationAnswers

Authentification.

authentify_user

AuthentificationAnswers

Overwrites this method to allow or reject users.

cleanup

QCMApp

Cleans up.

cleanup

StaticApp

Cleans up.

event

QCMApp

This route does not return anything interesting except a blank page, but it logs

event

StaticApp

This route does not return anything interesting except a blank page, but it logs

expected_answers

ActivityGroup

Returns the expected answers aliases.

get_app_session

AuthMount

Retrieves the starlette application and the session.

get_app_session

AuthStaticFiles

Retrieves the starlette application and the session.

get_app_session

_CommonMethods

Retrieves the starlette application and the session.

get_context

DisplayQuestionChoiceHTML

Renders a question specified as QCM.

get_display_item

ActivityGroup

Returns a displayable number.

get_next

ActivityGroup

Computes the next question or returns None if does not exist.

get_previous

ActivityGroup

Computes the previous question or returns None if does not exist.

get_session

AuthentificationAnswers

Retrieves the session.

hash_pwd

AuthentificationAnswers

Hashes a password.

is_allowed

AuthentificationAnswers

Checks that a user is allowed. Returns None if it is allowed, otherwise an page with an error message.

lastpage

QCMApp

Defines the last page.

log_any

LogApp

Logs information.

log_event

LogApp

Logs information about events.

login

AuthentificationAnswers

Login page. If paramater returnto is specified in the url, the user will go to this page after being logged.

logout

AuthentificationAnswers

Logout page.

main

QCMApp

Defines the main page.

main

StaticApp

Defines the main page.

not_found

QCMApp

Returns an HTTP 404 page.

not_found

StaticApp

Returns an HTTP 404 page.

on_error

QCMApp

An example error.

on_error

StaticApp

An example error.

page_context

QCMApp

Returns the page context before applying any template.

page_context

StaticApp

Returns the page context before applying any template.

qcm

QCMApp

Defines the main page.

run

ServerHypercorn

Starts the server.

save_session

AuthentificationAnswers

Saves the session to the response in a secure cookie.

server_error

QCMApp

Returns an HTTP 500 page.

server_error

StaticApp

Returns an HTTP 500 page.

startup

QCMApp

Startups.

startup

StaticApp

Startups.

to_dict

Activity

Returns all values as a dictionary.

to_dict

ActivityGroup

Returns all values as a dictionary.

to_dict

Base

Returns all values as a dictionary.

to_dict

Display

Returns all values as a dictionary.

to_dict

LanguageBase

Returns all values as a dictionary.

to_dict

Notion

Returns all values as a dictionary.

unknown_game

QCMApp

Returns an answer for somebody looking to access the questions without being authentified.

unlogged_response

QCMApp

Returns an answer for somebody looking to access the questions without being authentified.

unlogged_response

StaticApp

Returns an answer for somebody looking to access the questions without being authentified.