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
921950d7
Commit
921950d7
authored
Jul 14, 2017
by
Gregory Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
28bdfd4f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
lms/djangoapps/certificates/signals.py
+3
-1
openedx/core/djangoapps/models/course_details.py
+1
-3
openedx/core/djangoapps/signals/signals.py
+2
-0
No files found.
lms/djangoapps/certificates/signals.py
View file @
921950d7
...
@@ -61,7 +61,9 @@ def _listen_for_course_pacing_changed(sender, course_key, course_self_paced, **k
...
@@ -61,7 +61,9 @@ def _listen_for_course_pacing_changed(sender, course_key, course_self_paced, **k
the self-generated certificates according to course-pacing.
the self-generated certificates according to course-pacing.
"""
"""
toggle_self_generated_certs
.
delay
(
unicode
(
course_key
),
course_self_paced
)
toggle_self_generated_certs
.
delay
(
unicode
(
course_key
),
course_self_paced
)
log
.
info
(
u'Certificate Generation Setting Toggled for {course} via pacing change'
.
format
(
course
=
course_key
))
@task
()
@task
()
def
toggle_self_generated_certs
(
course_key
,
course_self_paced
):
def
toggle_self_generated_certs
(
course_key
,
course_self_paced
):
...
...
openedx/core/djangoapps/models/course_details.py
View file @
921950d7
...
@@ -5,16 +5,14 @@ import re
...
@@ -5,16 +5,14 @@ import re
import
logging
import
logging
from
django.conf
import
settings
from
django.conf
import
settings
from
django.dispatch
import
Signal
from
xmodule.fields
import
Date
from
xmodule.fields
import
Date
from
xmodule.modulestore.exceptions
import
ItemNotFoundError
from
xmodule.modulestore.exceptions
import
ItemNotFoundError
from
openedx.core.djangoapps.self_paced.models
import
SelfPacedConfiguration
from
openedx.core.djangoapps.self_paced.models
import
SelfPacedConfiguration
from
openedx.core.djangoapps.signals.signals
import
COURSE_PACING_CHANGE
from
openedx.core.lib.courses
import
course_image_url
from
openedx.core.lib.courses
import
course_image_url
from
xmodule.modulestore.django
import
modulestore
from
xmodule.modulestore.django
import
modulestore
COURSE_PACING_CHANGE
=
Signal
(
providing_args
=
[
"course_key"
,
"course_self_paced"
])
# This list represents the attribute keys for a course's 'about' info.
# This list represents the attribute keys for a course's 'about' info.
# Note: The 'video' attribute is intentionally excluded as it must be
# Note: The 'video' attribute is intentionally excluded as it must be
...
...
openedx/core/djangoapps/signals/signals.py
View file @
921950d7
...
@@ -22,3 +22,5 @@ COURSE_GRADE_NOW_PASSED = Signal(
...
@@ -22,3 +22,5 @@ COURSE_GRADE_NOW_PASSED = Signal(
# Signal that indicates that a user has become verified
# Signal that indicates that a user has become verified
LEARNER_NOW_VERIFIED
=
Signal
(
providing_args
=
[
'user'
])
LEARNER_NOW_VERIFIED
=
Signal
(
providing_args
=
[
'user'
])
COURSE_PACING_CHANGE
=
Signal
(
providing_args
=
[
"course_key"
,
"course_self_paced"
])
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