Commit 9955e9e3 by Alison Hodges

Merge pull request #3798 from edx/ahodges/documentation/DOC402

Adaptive hint correct_answer must be lc
parents 4e38b10a dc00ade1
...@@ -24,8 +24,14 @@ May, 2014 ...@@ -24,8 +24,14 @@ May, 2014
* Renamed the *Checking Student Progress and Issuing Certificates* * Renamed the *Checking Student Progress and Issuing Certificates*
section to :ref:`Checking Student Progress and Issuing Certificates`. section to :ref:`Checking Student Progress and Issuing Certificates`.
* -
- Updated :ref:`Problem with Adaptive Hint` to reflect formatting
requirements for the Python script and the correct_answer attribute.
* - 05/21/14 * - 05/21/14
- Added warning that version 1 of the :ref:`Open Response Assessments<Open Response Assessment>` suite has been deprecated and added a link to the `new ORA information <http://edx-open-response-assessments.readthedocs.org/en/latest/>`_. - Added warning that version 1 of the :ref:`Open Response Assessments<Open
Response Assessment>` suite has been deprecated and added a link to the
`new ORA information <http://edx-open-response-
assessments.readthedocs.org/en/latest/>`_.
* - 05/16/14 * - 05/16/14
- Updated :ref:`Working with Video Components` to reflect UI changes. - Updated :ref:`Working with Video Components` to reflect UI changes.
* - 05/14/14 * - 05/14/14
...@@ -74,7 +80,7 @@ April, 2014 ...@@ -74,7 +80,7 @@ April, 2014
* - 04/28/14 * - 04/28/14
- Updated :ref:`Show or Hide the Course Wiki Page` to include note about Wiki content being available after you hide the Wiki page. - Updated :ref:`Show or Hide the Course Wiki Page` to include note about Wiki content being available after you hide the Wiki page.
* - 04/26/14 * - 04/26/14
- Updated label information; added XML information to :ref:`Problem with Adaptive Hint` - Updated label information; added XML information to :ref:`Problem with Adaptive Hint`.
* - 04/24/14 * - 04/24/14
- Expanded the :ref:`Grades` chapter to include topics on interpreting the grade reports and student progress page. - Expanded the :ref:`Grades` chapter to include topics on interpreting the grade reports and student progress page.
* - * -
......
...@@ -83,10 +83,10 @@ Template ...@@ -83,10 +83,10 @@ Template
ans = str(student_answers[aid]).lower() ans = str(student_answers[aid]).lower()
print 'hint_fn called, ans=', ans print 'hint_fn called, ans=', ans
hint = '' hint = ''
if 'INCORRECT ANSWER 1' in ans: if 'incorrect answer 1' in ans:
hint = 'HINT FOR INCORRECT ANSWER 1' hint = 'hint for incorrect answer 1'
elif 'INCORRECT ANSWER 2' in ans: elif 'incorrect answer 2' in ans:
hint = 'HINT FOR INCORRECT ANSWER 2' hint = 'hint for incorrect answer 2'
if hint: if hint:
hint = "&lt;font color='blue'&gt;Hint: {0}&lt;/font&gt;".format(hint) hint = "&lt;font color='blue'&gt;Hint: {0}&lt;/font&gt;".format(hint)
...@@ -95,13 +95,14 @@ Template ...@@ -95,13 +95,14 @@ Template
<p>TEXT OF PROBLEM</p> <p>TEXT OF PROBLEM</p>
<p> <p>
<customresponse cfn="test_str" expect="ANSWER"> <customresponse cfn="test_str" expect="ANSWER">
<textline correct_answer="ANSWER" label="LABEL TEXT"/> <textline correct_answer="answer" label="LABEL TEXT"/>
<hintgroup hintfn="hint_fn"/> <hintgroup hintfn="hint_fn"/>
</customresponse> </customresponse>
</p> </p>
</text> </text>
</problem> </problem>
.. note:: If the hints that you supply include characters, the letters must be lowercase.
======== ========
Tags Tags
...@@ -129,6 +130,7 @@ Tags ...@@ -129,6 +130,7 @@ Tags
.. list-table:: .. list-table::
:widths: 20 80 :widths: 20 80
:header-rows: 1
* - Attribute * - Attribute
- Description - Description
...@@ -139,7 +141,10 @@ Tags ...@@ -139,7 +141,10 @@ Tags
* - hidden (optional) * - hidden (optional)
- If set to "true", students cannot see the response field. - If set to "true", students cannot see the response field.
* - correct_answer (optional) * - correct_answer (optional)
- Lists the correct answer to the problem. - The answer to the problem. To supply a correct_answer value that
includes letters, all letters **must be lowercase**. (Students'
responses to the problem are not case sensitive. They can contain both
uppercase and lowercase letters.)
Children Children
...@@ -151,8 +156,9 @@ Tags ...@@ -151,8 +156,9 @@ Tags
.. list-table:: .. list-table::
:widths: 20 80 :widths: 20 80
:header-rows: 1
* - Attribute * - Attribute
- Description - Description
* - hintfn * - hintfn
- Must be set to **hint_fn** (i.e., the tag must appear as ``<hintgroup hintfn="hint_fn"/>``). - Must be set to **hint_fn** (that is, the tag must appear as ``<hintgroup hintfn="hint_fn"/>``).
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment