def get_page_ancestors(self, page_id):
        """
        Provide the ancestors from the page (content) id
        :param page_id: content_id format
        :return: get properties
        """
        url = 'rest/api/content/{page_id}?expand=ancestors'.format(page_id=page_id)
        return (self.get(path=url) or {}).get('ancestors')
def get_page_ancestors ( self , page_id ) : url = 'rest/api/content/{page_id}?expand=ancestors' . format ( page_id = page_id ) return ( self . get ( path = url ) or { } ) . get ( 'ancestors' )
Provide the ancestors from the page (content) id
        :param page_id: content_id format
        :return: get properties