Context cheat sheet =================== The context will always have some values available throughout the life of the moulinette as well as specific values during each phase (see the :py:func:`quixote.get_context` to access the context). Common values ------------- +-------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------+ | Values | Availability | +--------------------+------------------------------------------------+---------+-------------------------------+-------------------------------+-------------------------------+ | Key | Value description | Type | Build | Fetch | Inspection | +====================+=========================+======================+=========+===============================+===============================+===============================+ | ``intra_user`` | Login to access ETNA services | ``str`` | Yes | Yes | No | +--------------------+------------------------------------------------+---------+-------------------------------+-------------------------------+-------------------------------+ | ``intra_password`` | Password to access ETNA services | ``str`` | Yes | Yes | No | +--------------------+------------------------------------------------+---------+-------------------------------+-------------------------------+-------------------------------+ | ``gitlab_token`` | Token to access GitLab | ``str`` | Yes | Yes | No | +--------------------+------------------------------------------------+---------+-------------------------------+-------------------------------+-------------------------------+ | ``delivery_path`` | Path to the student delivery | ``str`` | No | Yes | Yes | +--------------------+------------------------------------------------+---------+-------------------------------+-------------------------------+-------------------------------+ | ``resources_path`` | Path to the moulinette's resources | ``str`` | Yes | Yes | Yes | +--------------------+------------------------------------------------+---------+-------------------------------+-------------------------------+-------------------------------+ | ``public_path`` | Path to the public resources (not implemented) | ``str`` | Yes | Yes | Yes | +--------------------+------------------------------------------------+---------+-------------------------------+-------------------------------+-------------------------------+ | ``module_id`` | ID of the current module | ``int`` | Yes | Yes | Yes | +--------------------+------------------------------------------------+---------+-------------------------------+-------------------------------+-------------------------------+ | ``activity_id`` | ID of the current activity | ``int`` | Yes | Yes | Yes | +--------------------+------------------------------------------------+---------+-------------------------------+-------------------------------+-------------------------------+ | ``group_id`` | ID of the current group | ``int`` | No | Yes | Yes | +--------------------+------------------------------------------------+---------+-------------------------------+-------------------------------+-------------------------------+ | ``leader`` | Login of the leader of the current group | ``str`` | No | Yes | Yes | +--------------------+------------------------------------------------+---------+-------------------------------+-------------------------------+-------------------------------+ | ``stage`` | The name of the stage (in the case of a quest) | ``str`` | Yes | Yes | Yes | +--------------------+------------------------------------------------+---------+-------------------------------+-------------------------------+-------------------------------+