'Set both the importable and published flags on `item` to True.'

def publish(self, item, flush=True):

    if (not item.importable):
        self.make_importable(item, flush=False)
    return self._session_setattr(item, 'published', True, flush=flush)
