Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
f2fd649a
Commit
f2fd649a
authored
Dec 11, 2012
by
Valera Rozuvan
Committed by
Alexander Kryklia
Jan 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unnecessary XML section. Documenting.
parent
3e46ecef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
12 deletions
+3
-12
common/lib/xmodule/xmodule/gst_module.py
+3
-7
lms/templates/graphical_slider_tool.html
+0
-5
No files found.
common/lib/xmodule/xmodule/gst_module.py
View file @
f2fd649a
...
...
@@ -97,8 +97,6 @@ class GraphicalSliderToolModule(XModule):
number, then only error message is displayed.
Sliders and numbers are optional. Plot is required.-->
</configuration>
<plot_code>
</plot_code>
</graphical_slider_tool>
</vertical>
</sequential>
...
...
@@ -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
):
...
...
lms/templates/graphical_slider_tool.html
View file @
f2fd649a
...
...
@@ -4,11 +4,6 @@
${configuration_json}
</div>
<!-- hidden field to read configuration json from -->
<div
class=
"${element_class}"
id=
"${element_id}_plot_code"
style=
"display: none;"
>
${plot_code}
</div>
<!-- main xml with marked places for sliders, numbers, and plot -->
${gst_html}
</div>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment