'See :class: cms.lib.xblock.runtime.EditInfoRuntimeMixin'

def get_published_on(self, xblock):

    if (not hasattr(xblock, '_published_on')):
        self.modulestore.compute_published_info_internal(xblock)
    return getattr(xblock, '_published_on', None)
