Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
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-ora2
Commits
a2709bd9
Commit
a2709bd9
authored
Feb 24, 2014
by
Stephen Sanchez
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into sanchez/TIM-171-Submission-UI
Conflicts: apps/openassessment/xblock/submission_mixin.py
parents
e7f7bcda
229b719b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
8 deletions
+6
-8
apps/openassessment/xblock/peer_assessment_mixin.py
+1
-1
apps/openassessment/xblock/self_assessment_mixin.py
+1
-1
apps/openassessment/xblock/submission_mixin.py
+4
-6
No files found.
apps/openassessment/xblock/peer_assessment_mixin.py
View file @
a2709bd9
...
...
@@ -12,7 +12,7 @@ class PeerAssessmentMixin(object):
PeerAssessmentMixin is a Mixin for the OpenAssessmentBlock. Functions in
the PeerAssessmentMixin call into the OpenAssessmentBlock functions and
will not work outside
this scope.
will not work outside
of OpenAssessmentBlock
"""
...
...
apps/openassessment/xblock/self_assessment_mixin.py
View file @
a2709bd9
...
...
@@ -10,7 +10,7 @@ class SelfAssessmentMixin(object):
SelfAssessmentMixin is a Mixin for the OpenAssessmentBlock. Functions in
the SelfAssessmentMixin call into the OpenAssessmentBlock functions and
will not work outside
this scope
.
will not work outside
of OpenAssessmentBlock
.
"""
...
...
apps/openassessment/xblock/submission_mixin.py
View file @
a2709bd9
...
...
@@ -11,13 +11,12 @@ class SubmissionMixin(object):
SubmissionMixin is a Mixin for the OpenAssessmentBlock. Functions in the
SubmissionMixin call into the OpenAssessmentBlock functions and will not
work outside th
is scope
.
work outside th
e scope of OpenAssessmentBlock
.
"""
submit_errors
=
{
# Reported to user sometimes, and useful in tests
'ENOSUB'
:
'API submission is unrequested'
,
'ENODATA'
:
'API returned an empty response'
,
'EBADFORM'
:
'API Submission Request Error'
,
'EUNKNOWN'
:
'API returned unclassified exception'
,
...
...
@@ -49,10 +48,9 @@ class SubmissionMixin(object):
student_item_dict
=
self
.
get_student_item_dict
()
prev_sub
=
self
.
_get_user_submission
(
student_item_dict
)
if
prev_sub
:
# It is an error to submit multiple times for the same item
status_tag
=
'ENOMULTI'
else
:
status_tag
=
'ENOMULTI'
# It is an error to submit multiple times for the same item
if
not
prev_sub
:
status_tag
=
'ENODATA'
try
:
response
=
api
.
create_submission
(
student_item_dict
,
student_sub
)
except
api
.
SubmissionRequestError
,
e
:
...
...
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