lib/menu.py
changeset 12 2abc5ace0b15
parent 11 fa216534ae45
child 13 178ea40bbc44
equal deleted inserted replaced
11:fa216534ae45 12:2abc5ace0b15
    15             Gather the menu information for the given page
    15             Gather the menu information for the given page
    16         """
    16         """
    17 
    17 
    18         # the selected page
    18         # the selected page
    19         self.page = _page_tree.get_page(page.url)
    19         self.page = _page_tree.get_page(page.url)
       
    20 
       
    21         # the selected pagen's inheritance
       
    22         self.ancestry = self.page.get_ancestry()
    20         
    23         
    21         # list of menu items == page siblings
    24         # list of menu items == page siblings
    22         self.items = _page_tree.get_siblings(page.url)
    25         self.items = _page_tree.root.children
    23     
    26