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
1bc34a63
Commit
1bc34a63
authored
May 16, 2017
by
Gregory Martin
Committed by
GitHub
May 16, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15120 from edx/yro_implement-gradingpolicysig
Implement GPC signal
parents
0b098ef2
70b83f9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
+12
-1
cms/djangoapps/contentstore/signals.py
+12
-1
No files found.
cms/djangoapps/contentstore/signals.py
View file @
1bc34a63
...
...
@@ -4,7 +4,7 @@ import logging
from
datetime
import
datetime
from
pytz
import
UTC
from
django.dispatch
import
receiver
from
django.dispatch
import
receiver
,
Signal
from
xmodule.modulestore.django
import
modulestore
,
SignalHandler
from
contentstore.courseware_index
import
CoursewareSearchIndexer
,
LibrarySearchIndexer
...
...
@@ -17,6 +17,17 @@ from util.module_utils import yield_dynamic_descriptor_descendants
log
=
logging
.
getLogger
(
__name__
)
# Signal that indicates that a course grading policy has been updated.
# This signal is generated when a grading policy change occurs within
# modulestore for either course or subsection changes.
GRADING_POLICY_CHANGED
=
Signal
(
providing_args
=
[
'user_id'
,
# Integer User ID
'course_id'
,
# Unicode string representing the course
]
)
@receiver
(
SignalHandler
.
course_published
)
def
listen_for_course_publish
(
sender
,
course_key
,
**
kwargs
):
# pylint: disable=unused-argument
"""
...
...
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