apluslms / a-plus-rst-tools

Tools to publish RST course content for mooc-grader and a-plus. Should be cloned as a course submodule.
MIT License
6 stars 24 forks source link

Length option in freetext questions (in questionnaires) does not affect anything #153

Open markkuriekkinen opened 1 year ago

markkuriekkinen commented 1 year ago

The length option has been available for freetext questions for a very long time, but it actually does not do anything. There is code that tries to use them, but it looks like the intended HTML attributes are not saved to the exercise yaml file. Since the yaml file does not contain anything about the length, of course the MOOC-Grader can not render any HTML for the corresponding HTML size attribute.

https://github.com/apluslms/a-plus-rst-tools/blob/40c904b69e16518bf8e01cffac70877b58bbc448/directives/questionnaire.py#L619-L634 The node constructor: https://github.com/apluslms/a-plus-rst-tools/blob/40c904b69e16518bf8e01cffac70877b58bbc448/aplus_nodes.py#L26

MOOC-Grader renders questionnaires here:

The Aplus manual includes instructions for using length even though it does not work.