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
9ead4ebb
Commit
9ead4ebb
authored
Feb 12, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wire through ability to skip basic checks
parent
e1b2481c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletions
+9
-1
common/lib/xmodule/xmodule/open_ended_grading_classes/combined_open_ended_modulev1.py
+6
-0
common/lib/xmodule/xmodule/open_ended_grading_classes/open_ended_module.py
+2
-1
common/lib/xmodule/xmodule/open_ended_grading_classes/openendedchild.py
+1
-0
No files found.
common/lib/xmodule/xmodule/open_ended_grading_classes/combined_open_ended_modulev1.py
View file @
9ead4ebb
...
...
@@ -48,6 +48,10 @@ HUMAN_TASK_TYPE = {
'openended'
:
"edX Assessment"
,
}
#Default value that controls whether or not to skip basic spelling checks in the controller
#Metadata overrides this
SKIP_BASIC_CHECKS
=
False
class
CombinedOpenEndedV1Module
():
"""
This is a module that encapsulates all open ended grading (self assessment, peer assessment, etc).
...
...
@@ -146,6 +150,7 @@ class CombinedOpenEndedV1Module():
self
.
max_attempts
=
int
(
self
.
metadata
.
get
(
'attempts'
,
MAX_ATTEMPTS
))
self
.
is_scored
=
self
.
metadata
.
get
(
'is_graded'
,
IS_SCORED
)
in
TRUE_DICT
self
.
accept_file_upload
=
self
.
metadata
.
get
(
'accept_file_upload'
,
ACCEPT_FILE_UPLOAD
)
in
TRUE_DICT
self
.
skip_basic_checks
=
self
.
metadata
.
get
(
'skip_spelling_checks'
,
SKIP_BASIC_CHECKS
)
display_due_date_string
=
self
.
metadata
.
get
(
'due'
,
None
)
if
display_due_date_string
is
not
None
:
...
...
@@ -187,6 +192,7 @@ class CombinedOpenEndedV1Module():
'accept_file_upload'
:
self
.
accept_file_upload
,
'close_date'
:
self
.
close_date
,
's3_interface'
:
self
.
system
.
s3_interface
,
'skip_basic_checks'
:
self
.
skip_basic_checks
,
}
self
.
task_xml
=
definition
[
'task_xml'
]
...
...
common/lib/xmodule/xmodule/open_ended_grading_classes/open_ended_module.py
View file @
9ead4ebb
...
...
@@ -110,7 +110,8 @@ class OpenEndedModule(openendedchild.OpenEndedChild):
'rubric'
:
rubric_string
,
'initial_display'
:
self
.
initial_display
,
'answer'
:
self
.
answer
,
'problem_id'
:
self
.
display_name
'problem_id'
:
self
.
display_name
,
'skip_basic_checks'
:
self
.
skip_basic_checks
,
})
updated_grader_payload
=
json
.
dumps
(
parsed_grader_payload
)
...
...
common/lib/xmodule/xmodule/open_ended_grading_classes/openendedchild.py
View file @
9ead4ebb
...
...
@@ -99,6 +99,7 @@ class OpenEndedChild(object):
self
.
accept_file_upload
=
static_data
[
'accept_file_upload'
]
self
.
close_date
=
static_data
[
'close_date'
]
self
.
s3_interface
=
static_data
[
's3_interface'
]
self
.
skip_basic_checks
=
static_data
[
'skip_basic_checks'
]
# Used for progress / grading. Currently get credit just for
# completion (doesn't matter if you self-assessed correct/incorrect).
...
...
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