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
ac23c7c6
Commit
ac23c7c6
authored
Dec 19, 2012
by
Alexander Kryklia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix typo
parent
12452f10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
common/lib/xmodule/xmodule/gst_module.py
+4
-3
No files found.
common/lib/xmodule/xmodule/gst_module.py
View file @
ac23c7c6
...
...
@@ -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
(
'<root class="'
+
self
.
location
.
category
+
'">'
+
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
...
...
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