Methods

Summary

method class parent truncated documentation
__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  
__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.
event QCMApp This route does not return anything interesting except a blank page, but it logs
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.
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.
logout AuthentificationAnswers Logout page.
main QCMApp Defines the main page.
not_found QCMApp Returns an HTTP 404 page.
on_error QCMApp An example error.
page_context QCMApp 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.
startup QCMApp 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.