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
989a1b62
Commit
989a1b62
authored
Jan 23, 2014
by
Usman Khalid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If unable to send submission to grader store it instead.
ORA-197
parent
d2ede833
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
common/lib/xmodule/xmodule/open_ended_grading_classes/open_ended_module.py
+3
-1
common/lib/xmodule/xmodule/tests/test_combined_open_ended.py
+2
-0
No files found.
common/lib/xmodule/xmodule/open_ended_grading_classes/open_ended_module.py
View file @
989a1b62
...
...
@@ -282,7 +282,7 @@ class OpenEndedModule(openendedchild.OpenEndedChild):
message
=
"Successfully saved your submission."
if
error
:
success
=
False
message
=
'Unable to s
end
your submission to grader. Please try again later.'
message
=
'Unable to s
ubmit
your submission to grader. Please try again later.'
log
.
error
(
"Unable to submit to grader. location: {0}, error_message: {1}"
.
format
(
self
.
location_string
,
error_message
))
...
...
@@ -702,6 +702,8 @@ class OpenEndedModule(openendedchild.OpenEndedChild):
success
,
error_message
=
self
.
send_to_grader
(
data
[
'student_answer'
],
system
)
if
not
success
:
message
=
error_message
# Store the answer instead
self
.
store_answer
(
data
,
system
)
else
:
self
.
new_history_entry
(
data
[
'student_answer'
])
self
.
change_state
(
self
.
ASSESSING
)
...
...
common/lib/xmodule/xmodule/tests/test_combined_open_ended.py
View file @
989a1b62
...
...
@@ -363,8 +363,10 @@ class OpenEndedModuleTest(unittest.TestCase):
)
self
.
assertFalse
(
response
[
'success'
])
self
.
assertNotEqual
(
self
.
openendedmodule
.
latest_answer
(),
submission
)
self
.
assertEqual
(
self
.
openendedmodule
.
stored_answer
,
submission
)
state
=
json
.
loads
(
self
.
openendedmodule
.
get_instance_state
())
self
.
assertEqual
(
state
[
'child_state'
],
OpenEndedModule
.
INITIAL
)
self
.
assertEqual
(
state
[
'stored_answer'
],
submission
)
def
update_score_single
(
self
):
self
.
openendedmodule
.
new_history_entry
(
"New Entry"
)
...
...
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