Commit a3b408f2 by Xavier Antoviaque

Update `parse_xml()` call after API change

parent c50f6d56
...@@ -69,14 +69,14 @@ class QuizzBlock(XBlock): ...@@ -69,14 +69,14 @@ class QuizzBlock(XBlock):
has_children = True has_children = True
@classmethod @classmethod
def parse_xml(cls, node, runtime, keys): def parse_xml(cls, node, runtime, keys, id_generator):
block = runtime.construct_xblock_from_class(cls, keys) block = runtime.construct_xblock_from_class(cls, keys)
for child in node: for child in node:
if child.tag == "question": if child.tag == "question":
block.question = child.text block.question = child.text
else: else:
block.runtime.add_node_as_child(block, child) block.runtime.add_node_as_child(block, child, id_generator)
for name, value in node.items(): for name, value in node.items():
if name in block.fields: if name in block.fields:
......
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