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
95d39573
Commit
95d39573
authored
Feb 06, 2013
by
Diana Huang
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1438 from MITx/feature/vik/peer-grading-xmodule
Patch peer grading tab to work
parents
92f2149d
0133c7c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
lms/djangoapps/open_ended_grading/open_ended_notifications.py
+5
-1
No files found.
lms/djangoapps/open_ended_grading/open_ended_notifications.py
View file @
95d39573
from
django.conf
import
settings
from
staff_grading_service
import
StaffGradingService
from
open_ended_grading.controller_query_service
import
ControllerQueryService
from
xmodule
import
peer_grading_service
import
json
from
student.models
import
unique_id_for_user
import
open_ended_util
...
...
@@ -10,6 +11,8 @@ from courseware.access import has_access
from
util.cache
import
cache
import
datetime
from
xmodule
import
peer_grading_service
from
xmodule.x_module
import
ModuleSystem
from
mitxmako.shortcuts
import
render_to_string
log
=
logging
.
getLogger
(
__name__
)
...
...
@@ -55,7 +58,8 @@ def staff_grading_notifications(course, user):
return
notification_dict
def
peer_grading_notifications
(
course
,
user
):
peer_gs
=
PeerGradingService
(
settings
.
PEER_GRADING_INTERFACE
)
system
=
ModuleSystem
(
None
,
None
,
None
,
render_to_string
,
None
)
peer_gs
=
peer_grading_service
.
PeerGradingService
(
settings
.
PEER_GRADING_INTERFACE
,
system
)
pending_grading
=
False
img_path
=
""
course_id
=
course
.
id
...
...
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