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
2c98839a
Commit
2c98839a
authored
Feb 24, 2014
by
Stephen Sanchez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renaming render() to render_assessment() to avoid collision
parent
b784cb28
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
6 deletions
+5
-6
apps/openassessment/xblock/openassessmentblock.py
+1
-1
apps/openassessment/xblock/peer_assessment_mixin.py
+1
-1
apps/openassessment/xblock/self_assessment_mixin.py
+1
-1
apps/openassessment/xblock/submission_mixin.py
+2
-3
No files found.
apps/openassessment/xblock/openassessmentblock.py
View file @
2c98839a
...
...
@@ -274,7 +274,7 @@ class OpenAssessmentBlock(XBlock, SubmissionMixin, PeerAssessmentMixin, SelfAsse
}
return
grade_state
def
render
(
self
,
path
,
context_dict
=
None
):
def
render
_assessment
(
self
,
path
,
context_dict
=
None
):
"""Render an Assessment Module's HTML
Given the name of an assessment module, find it in the list of
...
...
apps/openassessment/xblock/peer_assessment_mixin.py
View file @
2c98839a
...
...
@@ -37,7 +37,7 @@ class PeerAssessmentMixin(object):
self
.
get_student_item_dict
(),
assessment
)}
return
self
.
render
(
'static/html/oa_peer_assessment.html'
,
context_dict
)
return
self
.
render
_assessment
(
'static/html/oa_peer_assessment.html'
,
context_dict
)
def
get_peer_submission
(
self
,
student_item_dict
,
assessment
):
peer_submission
=
False
...
...
apps/openassessment/xblock/self_assessment_mixin.py
View file @
2c98839a
...
...
@@ -5,5 +5,5 @@ class SelfAssessmentMixin(object):
@XBlock.handler
def
render_self_assessment
(
self
,
data
,
suffix
=
''
):
return
self
.
render
(
'static/html/oa_self_assessment.html'
)
return
self
.
render
_assessment
(
'static/html/oa_self_assessment.html'
)
apps/openassessment/xblock/submission_mixin.py
View file @
2c98839a
from
xblock.core
import
XBlock
from
openassessment.xblock.assessment_mixin
import
AssessmentMixin
from
submissions
import
api
class
SubmissionMixin
(
AssessmentMixin
):
class
SubmissionMixin
(
object
):
submit_errors
=
{
# Reported to user sometimes, and useful in tests
...
...
@@ -40,4 +39,4 @@ class SubmissionMixin(AssessmentMixin):
@XBlock.handler
def
render_submission
(
self
,
data
,
suffix
=
''
):
return
self
.
render
(
'static/html/oa_response.html'
)
return
self
.
render
_assessment
(
'static/html/oa_response.html'
)
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