Implement Moodle-XML to MoodleTools-YAML
Introduction
Currently MoodleTools helps in the making of questionnaires from a YAML-based description into the proper Moodle-XML files, however, there are questionnaires that were made directly in Moodle, modifying the questions directly for new courses is time consuming and prone to errors, as it is done by hand. Enhancing MoodleTools to transform the existing Moodle-XML questions into MoodleTools-YAML will benefit DIMA staff by speeding up the process of generating new questionnaires based on legacy questions and enhancing the DIMA questionnaires library for future use.
Goal
To introduce and lay the foundations for a MoodleTools module to transform Moodle-XML into MoodleTools-YAML, regardless of how the XML was generated.
Implementation
This issue should be focus on establishing the foundations for the module, therefore limiting the scope to (the General) Question
(src/moodle_tools/questions/question.py
) and Description
(src/moodle_tools/questions/description.py
) from the SUPPORTED_QUESTION_TYPES
are required.
Out of Scope
- All the Question Types in
SUPPORTED_QUESTION_TYPES
are excluded except theQuestion
(Abstract Class) andDescription
. - It is not expected to have an strict reverse YAML generation, but equivalent, as order in some of the elements can be tricky to replicate at first.