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
0a4931ec
Commit
0a4931ec
authored
May 15, 2017
by
Gregory Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement GPC signal
parent
21a5a425
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletions
+13
-1
cms/djangoapps/contentstore/signals.py
+13
-1
No files found.
cms/djangoapps/contentstore/signals.py
View file @
0a4931ec
...
...
@@ -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,18 @@ 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
'modified'
# A datetime indicating when the signal was fired
]
)
@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