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
bf361af3
Commit
bf361af3
authored
Nov 06, 2012
by
Vik Paruchuri
Committed by
Victor Shnayder
Nov 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added debug code, then removed it
parent
5c7e6415
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
common/lib/capa/capa/responsetypes.py
+1
-4
common/lib/capa/capa/xqueue_interface.py
+1
-0
No files found.
common/lib/capa/capa/responsetypes.py
View file @
bf361af3
...
...
@@ -1843,8 +1843,6 @@ class OpenEndedResponse(LoncapaResponse):
self
.
url
=
xml
.
get
(
'url'
,
None
)
self
.
queue_name
=
xml
.
get
(
'queuename'
,
self
.
system
.
xqueue
[
'default_queuename'
])
# VS[compat]:
# Check if XML uses the ExternalResponse format or the generic OpenEndedResponse format
oeparam
=
self
.
xml
.
find
(
'openendedparam'
)
self
.
_parse_openendedresponse_xml
(
oeparam
)
...
...
@@ -1914,7 +1912,7 @@ class OpenEndedResponse(LoncapaResponse):
# Submit request. When successful, 'msg' is the prior length of the queue
contents
.
update
({
'student_response'
:
submission
})
contents
.
update
({
'grader_type'
:
self
.
grader_type
})
log
.
debug
(
contents
)
(
error
,
msg
)
=
qinterface
.
send_to_queue
(
header
=
xheader
,
body
=
json
.
dumps
(
contents
))
...
...
@@ -1939,7 +1937,6 @@ class OpenEndedResponse(LoncapaResponse):
return
cmap
def
update_score
(
self
,
score_msg
,
oldcmap
,
queuekey
):
(
valid_score_msg
,
correct
,
points
,
msg
)
=
self
.
_parse_score_msg
(
score_msg
)
if
not
valid_score_msg
:
oldcmap
.
set
(
self
.
answer_id
,
...
...
common/lib/capa/capa/xqueue_interface.py
View file @
bf361af3
...
...
@@ -49,6 +49,7 @@ def parse_xreply(xreply):
return_code
=
xreply
[
'return_code'
]
content
=
xreply
[
'content'
]
return
(
return_code
,
content
)
...
...
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