@receiver(SignalHandler.pre_publish)
def on_pre_publish(sender, course_key, **kwargs):
 from openedx.core.djangoapps.credit import api
 if api.is_credit_course(course_key):
  log.info(u'Starting to update in-course reverification access rules')
  update_verification_partitions(course_key)
  log.info(u'Finished updating in-course reverification access rules')

@ receiver ( SignalHandler . pre_publish ) def on_pre_publish ( sender , course_key , ** kwargs ) : from openedx . core . djangoapps . credit import api if api . is_credit_course ( course_key ) : log . info ( u'Starting to update in-course reverification access rules' ) update_verification_partitions ( course_key ) log . info ( u'Finished updating in-course reverification access rules' )
create user partitions for verification checkpoints .