'Set page\'s importable attribute and slug.'

@web.expose
@web.require_login('use    Galaxy    pages')
def set_accessible_async(self, trans, id=None, accessible=False):

    page = self.get_page(trans, id)
    importable = (accessible in ['True', 'true', 't', 'T'])
    if (page.importable != importable):
        if importable:
            self._make_item_accessible(trans.sa_session, page)
        else:
            page.importable = importable
        trans.sa_session.flush()
    return
