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
e71535fc
Commit
e71535fc
authored
Jan 26, 2015
by
Usman Khalid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not show file_upload option if more than 1 prompts.
TNL-708
parent
f3028aa2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
openassessment/xblock/submission_mixin.py
+3
-3
No files found.
openassessment/xblock/submission_mixin.py
View file @
e71535fc
...
@@ -172,7 +172,7 @@ class SubmissionMixin(object):
...
@@ -172,7 +172,7 @@ class SubmissionMixin(object):
# so that later we can add additional response fields.
# so that later we can add additional response fields.
student_sub_dict
=
prepare_submission_for_serialization
(
student_sub_data
)
student_sub_dict
=
prepare_submission_for_serialization
(
student_sub_data
)
if
self
.
allow_file_upload
:
if
self
.
allow_file_upload
and
len
(
self
.
prompts
)
==
1
:
student_sub_dict
[
'file_key'
]
=
self
.
_get_student_item_key
()
student_sub_dict
[
'file_key'
]
=
self
.
_get_student_item_key
()
submission
=
api
.
create_submission
(
student_item_dict
,
student_sub_dict
)
submission
=
api
.
create_submission
(
student_item_dict
,
student_sub_dict
)
self
.
create_workflow
(
submission
[
"uuid"
])
self
.
create_workflow
(
submission
[
"uuid"
])
...
@@ -354,12 +354,12 @@ class SubmissionMixin(object):
...
@@ -354,12 +354,12 @@ class SubmissionMixin(object):
if
due_date
<
DISTANT_FUTURE
:
if
due_date
<
DISTANT_FUTURE
:
context
[
"submission_due"
]
=
due_date
context
[
"submission_due"
]
=
due_date
context
[
'allow_file_upload'
]
=
self
.
allow_file_upload
context
[
'allow_file_upload'
]
=
self
.
allow_file_upload
and
len
(
self
.
prompts
)
==
1
context
[
'allow_latex'
]
=
self
.
allow_latex
context
[
'allow_latex'
]
=
self
.
allow_latex
context
[
'has_peer'
]
=
'peer-assessment'
in
self
.
assessment_steps
context
[
'has_peer'
]
=
'peer-assessment'
in
self
.
assessment_steps
context
[
'has_self'
]
=
'self-assessment'
in
self
.
assessment_steps
context
[
'has_self'
]
=
'self-assessment'
in
self
.
assessment_steps
if
self
.
allow_file_upload
:
if
context
[
'allow_file_upload'
]
:
context
[
'file_url'
]
=
self
.
_get_download_url
()
context
[
'file_url'
]
=
self
.
_get_download_url
()
if
not
workflow
and
problem_closed
:
if
not
workflow
and
problem_closed
:
...
...
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