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
38a81b46
Commit
38a81b46
authored
Jan 08, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove open ended grading stuff, fix JS variable
parent
bc97a507
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2 additions
and
80 deletions
+2
-80
common/lib/capa/capa/inputtypes.py
+0
-48
common/lib/capa/capa/responsetypes.py
+0
-0
common/lib/xmodule/xmodule/js/src/capa/display.coffee
+0
-30
common/lib/xmodule/xmodule/js/src/combinedopenended/display.coffee
+1
-1
common/lib/xmodule/xmodule/open_ended_module.py
+1
-1
No files found.
common/lib/capa/capa/inputtypes.py
View file @
38a81b46
...
...
@@ -735,51 +735,3 @@ class ChemicalEquationInput(InputTypeBase):
registry
.
register
(
ChemicalEquationInput
)
#-----------------------------------------------------------------------------
class
OpenEndedInput
(
InputTypeBase
):
"""
A text area input for code--uses codemirror, does syntax highlighting, special tab handling,
etc.
"""
template
=
"openendedinput.html"
tags
=
[
'openendedinput'
]
# pulled out for testing
submitted_msg
=
(
"Feedback not yet available. Reload to check again. "
"Once the problem is graded, this message will be "
"replaced with the grader's feedback."
)
@classmethod
def
get_attributes
(
cls
):
"""
Convert options to a convenient format.
"""
return
[
Attribute
(
'rows'
,
'30'
),
Attribute
(
'cols'
,
'80'
),
Attribute
(
'hidden'
,
''
),
]
def
setup
(
self
):
"""
Implement special logic: handle queueing state, and default input.
"""
# if no student input yet, then use the default input given by the problem
if
not
self
.
value
:
self
.
value
=
self
.
xml
.
text
# Check if problem has been queued
self
.
queue_len
=
0
# Flag indicating that the problem has been queued, 'msg' is length of queue
if
self
.
status
==
'incomplete'
:
self
.
status
=
'queued'
self
.
queue_len
=
self
.
msg
self
.
msg
=
self
.
submitted_msg
def
_extra_context
(
self
):
"""Defined queue_len, add it """
return
{
'queue_len'
:
self
.
queue_len
,}
registry
.
register
(
OpenEndedInput
)
#-----------------------------------------------------------------------------
common/lib/capa/capa/responsetypes.py
View file @
38a81b46
This diff is collapsed.
Click to expand it.
common/lib/xmodule/xmodule/js/src/capa/display.coffee
View file @
38a81b46
...
...
@@ -25,7 +25,6 @@ class @Problem
@
$
(
'section.action input.reset'
).
click
@
reset
@
$
(
'section.action input.show'
).
click
@
show
@
$
(
'section.action input.save'
).
click
@
save
@
$
(
'section.evaluation input.submit-message'
).
click
@
message_post
# Collapsibles
Collapsible
.
setCollapsibles
(
@
el
)
...
...
@@ -198,35 +197,6 @@ class @Problem
else
@
gentle_alert
response
.
success
message_post
:
=>
Logger
.
log
'message_post'
,
@
answers
fd
=
new
FormData
()
feedback
=
@
$
(
'section.evaluation textarea.feedback-on-feedback'
)[
0
].
value
submission_id
=
$
(
'div.external-grader-message div.submission_id'
)[
0
].
innerHTML
grader_id
=
$
(
'div.external-grader-message div.grader_id'
)[
0
].
innerHTML
score
=
$
(
".evaluation-scoring input:radio[name='evaluation-score']:checked"
).
val
()
fd
.
append
(
'feedback'
,
feedback
)
fd
.
append
(
'submission_id'
,
submission_id
)
fd
.
append
(
'grader_id'
,
grader_id
)
if
(
!
score
)
@
gentle_alert
"You need to pick a rating before you can submit."
return
else
fd
.
append
(
'score'
,
score
)
settings
=
type
:
"POST"
data
:
fd
processData
:
false
contentType
:
false
success
:
(
response
)
=>
@
gentle_alert
response
.
message
@
$
(
'section.evaluation'
).
slideToggle
()
$
.
ajaxWithPrefix
(
"
#{
@
url
}
/message_post"
,
settings
)
reset
:
=>
Logger
.
log
'problem_reset'
,
@
answers
$
.
postWithPrefix
"
#{
@
url
}
/problem_reset"
,
id
:
@
id
,
(
response
)
=>
...
...
common/lib/xmodule/xmodule/js/src/combinedopenended/display.coffee
View file @
38a81b46
...
...
@@ -218,7 +218,7 @@ class @CombinedOpenEnded
@
reinitialize
(
@
element
)
@
rebind
()
@
next_problem_button
.
hide
()
if
response
.
allow_reset
==
"False"
if
!
response
.
allow_reset
@
gentle_alert
"Moved to next step."
else
@
gentle_alert
"Your score did not meet the criteria to move to the next step."
...
...
common/lib/xmodule/xmodule/open_ended_module.py
View file @
38a81b46
...
...
@@ -245,7 +245,7 @@ class OpenEndedModule(openendedchild.OpenEndedChild):
that will have more complex feedback.
Output:
String -- html that can be displayed to the student.
String -- html that can be display
incorrect-icon.png
ed to the student.
"""
# We want to display available feedback in a particular order.
...
...
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