From ac23c7c630bd9149e8242e554a781a081154599c Mon Sep 17 00:00:00 2001 From: Alexander Kryklia Date: Wed, 19 Dec 2012 13:10:12 +0200 Subject: [PATCH] fix typo --- common/lib/xmodule/xmodule/gst_module.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/common/lib/xmodule/xmodule/gst_module.py b/common/lib/xmodule/xmodule/gst_module.py index 3bedd6dc9f..b1e30bd7a1 100644 --- a/common/lib/xmodule/xmodule/gst_module.py +++ b/common/lib/xmodule/xmodule/gst_module.py @@ -173,6 +173,7 @@ class GraphicalSliderToolModule(XModule): via json. """ # root added for interface compatibility with xmltodict.parse + # import ipdb; ipdb.set_trace() self.configuration_json = json.dumps( xmltodict.parse('' + stringify_children(self.definition['configuration']) @@ -199,13 +200,13 @@ class GraphicalSliderToolDescriptor(MakoModuleDescriptor, XmlDescriptor): expected_children_level_0 = ['render', 'configuration'] for child in expected_children_level_0: if len(xml_object.xpath(child)) != 1: - raise ValueError("Self a\ssessment definition must include \ + raise ValueError("Graphical Slider Tool definition must include \ exactly one '{0}' tag".format(child)) - expected_children_level_1 = ['plot'] + expected_children_level_1 = ['functions'] for child in expected_children_level_1: if len(xml_object.xpath('configuration')[0].xpath(child)) != 1: - raise ValueError("Self a\ssessment definition must include \ + raise ValueError("Graphical Slider Tool definition must include \ exactly one '{0}' tag".format(child)) # finished