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
efea4f53
Commit
efea4f53
authored
Dec 20, 2012
by
Alexander Kryklia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
d4b8a7bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
common/lib/xmodule/xmodule/gst_module.py
+3
-2
No files found.
common/lib/xmodule/xmodule/gst_module.py
View file @
efea4f53
...
@@ -55,14 +55,15 @@ class GraphicalSliderToolModule(XModule):
...
@@ -55,14 +55,15 @@ class GraphicalSliderToolModule(XModule):
def
get_html
(
self
):
def
get_html
(
self
):
""" Renders parameters to template. """
""" Renders parameters to template. """
# these
both
will be used in class methods
# these
3
will be used in class methods
self
.
html_id
=
self
.
location
.
html_id
()
self
.
html_id
=
self
.
location
.
html_id
()
self
.
html_class
=
self
.
location
.
category
self
.
html_class
=
self
.
location
.
category
self
.
configuration_json
=
self
.
build_configuration_json
()
params
=
{
params
=
{
'gst_html'
:
self
.
substitute_controls
(
self
.
definition
[
'render'
]),
'gst_html'
:
self
.
substitute_controls
(
self
.
definition
[
'render'
]),
'element_id'
:
self
.
html_id
,
'element_id'
:
self
.
html_id
,
'element_class'
:
self
.
html_class
,
'element_class'
:
self
.
html_class
,
'configuration_json'
:
self
.
build_configuration_json
()
'configuration_json'
:
self
.
configuration_json
}
}
self
.
content
=
(
self
.
system
.
render_template
(
self
.
content
=
(
self
.
system
.
render_template
(
'graphical_slider_tool.html'
,
params
))
'graphical_slider_tool.html'
,
params
))
...
...
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