Commit 921950d7 by Gregory Martin

update

parent 28bdfd4f
...@@ -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):
......
...@@ -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
......
...@@ -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"])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment