'See the docs for xmodule.modulestore.mixed.MixedModuleStore'

def revert_to_published(self, location, user_id):

    with remove_ccx(location) as (location, restore):
        return restore(self._modulestore.revert_to_published(location, user_id))
