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
2bbbe12a
Commit
2bbbe12a
authored
Jan 02, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor instance state saving
parent
b009d15d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
common/lib/xmodule/xmodule/combined_open_ended_module.py
+5
-2
common/lib/xmodule/xmodule/open_ended_module.py
+1
-0
No files found.
common/lib/xmodule/xmodule/combined_open_ended_module.py
View file @
2bbbe12a
...
@@ -116,12 +116,15 @@ class CombinedOpenEndedModule(XModule):
...
@@ -116,12 +116,15 @@ class CombinedOpenEndedModule(XModule):
def
get_html
(
self
):
def
get_html
(
self
):
html
=
self
.
current_task
.
get_html
(
self
.
system
)
html
=
self
.
current_task
.
get_html
(
self
.
system
)
return_html
=
rewrite_links
(
html
,
self
.
rewrite_content_links
)
return_html
=
rewrite_links
(
html
,
self
.
rewrite_content_links
)
self
.
task_states
[
len
(
self
.
task_states
)
-
1
]
=
self
.
current_task
.
get_instance_state
()
self
.
update_task_states
()
return
return_html
return
return_html
def
update_task_states
(
self
):
self
.
task_states
[
len
(
self
.
task_states
)
-
1
]
=
self
.
current_task
.
get_instance_state
()
def
handle_ajax
(
self
,
dispatch
,
get
):
def
handle_ajax
(
self
,
dispatch
,
get
):
return_html
=
self
.
current_task
.
handle_ajax
(
dispatch
,
get
,
self
.
system
)
return_html
=
self
.
current_task
.
handle_ajax
(
dispatch
,
get
,
self
.
system
)
self
.
task_states
[
len
(
self
.
task_states
)
-
1
]
=
self
.
current_task
.
get_instance_state
()
self
.
update_task_states
()
return
return_html
return
return_html
def
get_instance_state
(
self
):
def
get_instance_state
(
self
):
...
...
common/lib/xmodule/xmodule/open_ended_module.py
0 → 100644
View file @
2bbbe12a
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