Commit 4661f181 by solashirai Committed by Piotr Mitros

working on fixing problem_check and parse_xml

parent 330a96c5
...@@ -385,7 +385,7 @@ class CrowdsourceHinter(XBlock): ...@@ -385,7 +385,7 @@ class CrowdsourceHinter(XBlock):
""" """
<verticaldemo> <verticaldemo>
<crowdsourcehinter> <crowdsourcehinter>
{"initial_hint_answer": "michigann", "initial_hint_text": "you have an extra n", "generic_hint": "make sure to chekc your spelling"} {"initial_hint_answer": "michigann", "initial_hint_text": "you have an extra n", "generic_hint": "make sure to check your spelling"}
</crowdsourcehinter> </crowdsourcehinter>
</verticaldemo> </verticaldemo>
""" """
...@@ -398,5 +398,6 @@ class CrowdsourceHinter(XBlock): ...@@ -398,5 +398,6 @@ class CrowdsourceHinter(XBlock):
A minimal working test for parse_xml A minimal working test for parse_xml
""" """
block = runtime.construct_xblock_from_class(cls, keys) block = runtime.construct_xblock_from_class(cls, keys)
#import pdb; pdb.set_trace() #from IPython import embed
#embed()
return block return block
...@@ -24,6 +24,7 @@ function CrowdsourceHinter(runtime, element){ ...@@ -24,6 +24,7 @@ function CrowdsourceHinter(runtime, element){
//directly passing data to onStudentSubmission does not appear to work //directly passing data to onStudentSubmission does not appear to work
function get_event_data(event_type, data, element){ function get_event_data(event_type, data, element){
onStudentSubmission(data); onStudentSubmission(data);
console.log(data);
} }
Logger.listen('problem_check', null, get_event_data); Logger.listen('problem_check', null, get_event_data);
......
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