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
afcd6fb1
Commit
afcd6fb1
authored
Aug 03, 2012
by
kimth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Safe logging of File-included answers
parent
eeaa1e04
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
common/lib/xmodule/xmodule/capa_module.py
+3
-4
No files found.
common/lib/xmodule/xmodule/capa_module.py
View file @
afcd6fb1
...
...
@@ -16,6 +16,7 @@ from xmodule.exceptions import NotFoundError
from
progress
import
Progress
from
capa.capa_problem
import
LoncapaProblem
from
capa.responsetypes
import
StudentInputError
from
capa.util
import
convert_files_to_filenames
log
=
logging
.
getLogger
(
"mitx.courseware"
)
...
...
@@ -415,8 +416,7 @@ class CapaModule(XModule):
event_info
[
'problem_id'
]
=
self
.
location
.
url
()
answers
=
self
.
make_dict_of_responses
(
get
)
event_info
[
'answers'
]
=
answers
event_info
[
'answers'
]
=
convert_files_to_filenames
(
answers
)
# Too late. Cannot submit
if
self
.
closed
():
...
...
@@ -424,8 +424,7 @@ class CapaModule(XModule):
self
.
system
.
track_function
(
'save_problem_check_fail'
,
event_info
)
raise
NotFoundError
(
'Problem is closed'
)
# Problem submitted. Student should reset before checking
# again.
# Problem submitted. Student should reset before checking again
if
self
.
lcp
.
done
and
self
.
rerandomize
==
"always"
:
event_info
[
'failure'
]
=
'unreset'
self
.
system
.
track_function
(
'save_problem_check_fail'
,
event_info
)
...
...
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