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
70d0e6a1
Commit
70d0e6a1
authored
Jan 04, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Silly tab error
parent
6ef8713c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
common/lib/xmodule/xmodule/combined_open_ended_module.py
+9
-4
No files found.
common/lib/xmodule/xmodule/combined_open_ended_module.py
View file @
70d0e6a1
...
@@ -201,11 +201,14 @@ class CombinedOpenEndedModule(XModule):
...
@@ -201,11 +201,14 @@ class CombinedOpenEndedModule(XModule):
return_html
=
self
.
current_task
.
handle_ajax
(
dispatch
,
get
,
self
.
system
)
return_html
=
self
.
current_task
.
handle_ajax
(
dispatch
,
get
,
self
.
system
)
return
self
.
update_task_states_ajax
(
return_html
)
return
self
.
update_task_states_ajax
(
return_html
)
def
next_problem
(
self
):
d
=
handlers
[
dispatch
](
get
)
return
json
.
dumps
(
d
,
cls
=
ComplexEncoder
)
def
next_problem
(
self
,
get
):
self
.
setup_next_task
()
self
.
setup_next_task
()
return
{
'success'
:
True
}
return
{
'success'
:
True
}
def
reset
(
self
):
def
reset
(
self
,
get
):
"""
"""
If resetting is allowed, reset the state.
If resetting is allowed, reset the state.
...
@@ -221,13 +224,15 @@ class CombinedOpenEndedModule(XModule):
...
@@ -221,13 +224,15 @@ class CombinedOpenEndedModule(XModule):
'error'
:
'Too many attempts.'
'error'
:
'Too many attempts.'
}
}
self
.
state
=
self
.
INITIAL
self
.
state
=
self
.
INITIAL
self
.
current_task_number
=
0
for
i
in
xrange
(
0
,
len
(
self
.
task_xml
)):
self
.
current_task_number
=
i
self
.
setup_next_task
()
self
.
setup_next_task
()
self
.
current_task
.
reset
(
self
.
system
)
self
.
current_task
.
reset
(
self
.
system
)
self
.
current_task_number
=
0
return
{
'success'
:
True
}
return
{
'success'
:
True
}
def
get_instance_state
(
self
):
def
get_instance_state
(
self
):
"""
"""
Get the current score and state
Get the current score and state
"""
"""
...
...
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