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
d8b94f91
Commit
d8b94f91
authored
Jan 31, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't pass course to templates
parent
4608bb27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
common/lib/xmodule/xmodule/peer_grading_module.py
+4
-3
No files found.
common/lib/xmodule/xmodule/peer_grading_module.py
View file @
d8b94f91
...
@@ -94,7 +94,10 @@ class PeerGradingModule(XModule):
...
@@ -94,7 +94,10 @@ class PeerGradingModule(XModule):
Needs to be implemented by inheritors. Renders the HTML that students see.
Needs to be implemented by inheritors. Renders the HTML that students see.
@return:
@return:
"""
"""
pass
if
not
self
.
use_for_single_location
:
return
self
.
peer_grading
()
else
:
return
self
.
peer_grading_problem
({
'location'
:
self
.
system
.
location
})
def
handle_ajax
(
self
,
dispatch
,
get
):
def
handle_ajax
(
self
,
dispatch
,
get
):
"""
"""
...
@@ -357,7 +360,6 @@ class PeerGradingModule(XModule):
...
@@ -357,7 +360,6 @@ class PeerGradingModule(XModule):
ajax_url
=
self
.
system
.
ajax_url
ajax_url
=
self
.
system
.
ajax_url
return
self
.
system
.
render_template
(
'peer_grading/peer_grading.html'
,
{
return
self
.
system
.
render_template
(
'peer_grading/peer_grading.html'
,
{
'course'
:
course
,
'course_id'
:
self
.
system
.
course_id
,
'course_id'
:
self
.
system
.
course_id
,
'ajax_url'
:
ajax_url
,
'ajax_url'
:
ajax_url
,
'success'
:
success
,
'success'
:
success
,
...
@@ -382,7 +384,6 @@ class PeerGradingModule(XModule):
...
@@ -382,7 +384,6 @@ class PeerGradingModule(XModule):
return
self
.
system
.
render_template
(
'peer_grading/peer_grading_problem.html'
,
{
return
self
.
system
.
render_template
(
'peer_grading/peer_grading_problem.html'
,
{
'view_html'
:
''
,
'view_html'
:
''
,
'course'
:
course
,
'problem_location'
:
problem_location
,
'problem_location'
:
problem_location
,
'course_id'
:
self
.
system
.
course_id
,
'course_id'
:
self
.
system
.
course_id
,
'ajax_url'
:
ajax_url
,
'ajax_url'
:
ajax_url
,
...
...
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