'Get a page from the database by id.'

def get_page(self, trans, id, check_ownership=True, check_accessible=False):

    id = self.decode_id(id)
    page = trans.sa_session.query(model.Page).get(id)
    if (not page):
        error('Page    not    found')
    else:
        return self.security_check(trans, page, check_ownership, check_accessible)
