From f2fd649a1689941fb2c419ba1d93dd0507833f45 Mon Sep 17 00:00:00 2001 From: Valera Rozuvan Date: Tue, 11 Dec 2012 12:13:35 +0200 Subject: [PATCH] Removed unnecessary XML section. Documenting. --- common/lib/xmodule/xmodule/gst_module.py | 10 +++------- lms/templates/graphical_slider_tool.html | 5 ----- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/common/lib/xmodule/xmodule/gst_module.py b/common/lib/xmodule/xmodule/gst_module.py index 61a883fbf8..f0c3d0b7e6 100644 --- a/common/lib/xmodule/xmodule/gst_module.py +++ b/common/lib/xmodule/xmodule/gst_module.py @@ -97,8 +97,6 @@ class GraphicalSliderToolModule(XModule): number, then only error message is displayed. Sliders and numbers are optional. Plot is required.--> - - @@ -116,8 +114,7 @@ class GraphicalSliderToolModule(XModule): 'gst_html': gst_html, 'element_id': self.html_id, 'element_class': self.html_class, - 'configuration_json': self.configuration_json, - 'plot_code': self.definition['plot_code'] + 'configuration_json': self.configuration_json } self.content = (self.system.render_template( 'graphical_slider_tool.html', params)) @@ -195,7 +192,7 @@ class GraphicalSliderToolDescriptor(MakoModuleDescriptor, XmlDescriptor): dict """ # check for presense of required tags in xml - expected_children_level_0 = ['render', 'configuration', 'plot_code'] + 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 \ @@ -214,8 +211,7 @@ class GraphicalSliderToolDescriptor(MakoModuleDescriptor, XmlDescriptor): return { 'render': parse('render'), - 'configuration': xml_object.xpath('configuration')[0], - 'plot_code': parse('plot_code'), + 'configuration': xml_object.xpath('configuration')[0] } def definition_to_xml(self, resource_fs): diff --git a/lms/templates/graphical_slider_tool.html b/lms/templates/graphical_slider_tool.html index 17d2bae5e9..93a6761784 100644 --- a/lms/templates/graphical_slider_tool.html +++ b/lms/templates/graphical_slider_tool.html @@ -4,11 +4,6 @@ ${configuration_json} - - - ${gst_html}