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
3d8ee671
Commit
3d8ee671
authored
Aug 03, 2012
by
kimth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust comments
parent
e4609f3a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
common/lib/capa/capa/responsetypes.py
+1
-1
common/lib/xmodule/xmodule/js/src/capa/display.coffee
+5
-6
lms/djangoapps/courseware/module_render.py
+1
-1
No files found.
common/lib/capa/capa/responsetypes.py
View file @
3d8ee671
...
...
@@ -873,7 +873,7 @@ class CodeResponse(LoncapaResponse):
queue_name
=
self
.
queue_name
)
# Generate body
# NOTE: Currently specialized to 6.00x's pyxserver
s
, which follows the ExternalResponse interface
# NOTE: Currently specialized to 6.00x's pyxserver, which follows the ExternalResponse interface
contents
=
{
'xml'
:
etree
.
tostring
(
self
.
xml
,
pretty_print
=
True
),
'edX_cmd'
:
'get_score'
,
'edX_tests'
:
self
.
tests
,
...
...
common/lib/xmodule/xmodule/js/src/capa/display.coffee
View file @
3d8ee671
...
...
@@ -47,11 +47,11 @@ class @Problem
$
(
placeholder
).
remove
()
###
# 'check_fd' uses FormData to allow file submissions
, in addition to simple,
#
querystring-based answers, in the 'problem_check' dispatch.
# 'check_fd' uses FormData to allow file submissions
in the 'problem_check' dispatch,
#
in addition to simple querystring-based answers
#
# NOTE: The dispatch 'problem_check' is being singled out for the use of FormData;
#
perhaps preferable to consolidate all dispatches to use FormData consistently
#
maybe preferable to consolidate all dispatches to use FormData
###
check_fd
:
=>
Logger
.
log
'problem_check'
,
@
answers
...
...
@@ -63,15 +63,14 @@ class @Problem
fd
=
new
FormData
()
# For each file input, allow a single file submission,
# routed to Django 'request.FILES'
#
which is
routed to Django 'request.FILES'
@
$
(
'input:file'
).
each
(
index
,
element
)
->
if
element
.
files
[
0
]
instanceof
File
fd
.
append
(
element
.
id
,
element
.
files
[
0
])
else
fd
.
append
(
element
.
id
,
''
)
# Even if no file selected, need to include input id
# Simple (non-file) answers,
# routed to Django 'request.POST'
# Simple (non-file) answers, which is routed to Django 'request.POST'
fd
.
append
(
'__answers_querystring'
,
@
answers
)
settings
=
...
...
lms/djangoapps/courseware/module_render.py
View file @
3d8ee671
...
...
@@ -276,7 +276,7 @@ def modx_dispatch(request, dispatch=None, id=None):
post
=
request
.
POST
.
copy
()
# Catch the use of FormData in xmodule frontend for 'problem_check'. After this block,
# the 'post' dict is functionally equivalent before
- and after-
the use of FormData
# the 'post' dict is functionally equivalent before
and after
the use of FormData
# TODO: A more elegant solution?
if
post
.
has_key
(
'__answers_querystring'
):
qs
=
post
.
pop
(
'__answers_querystring'
)[
0
]
...
...
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