"""Signal handler for posting course updated to CCXCon"""fromdjango.dispatch.dispatcherimportreceiverfromxmodule.modulestore.djangoimportSignalHandler@receiver(SignalHandler.course_published,dispatch_uid='ccxcon_course_publish_handler')def_listen_for_course_publish(sender,course_key,**kwargs):# pylint: disable=unused-argument""" Listener for course_plublish events. This listener takes care of submitting a task to update CCXCon """# update the course information on ccxcon using celery# import here, because signal is registered at startup, but items in tasks are not yet able to be loadedfromopenedx.core.djangoapps.ccxconimporttaskstasks.update_ccxcon.delay(unicode(course_key))