sitetree/sitetreeapp.py
def update_has_children(self, tree_alias, tree_items, navigation_type):
        """Updates 'has_children' attribute for tree items inplace.

        :param str|unicode tree_alias:
        :param list tree_items:
        :param str|unicode navigation_type: sitetree, breadcrumbs, menu
        """
        get_children = self.get_children
        filter_items = self.filter_items
        apply_hook = self.apply_hook

        for tree_item in tree_items:
            children = get_children(tree_alias, tree_item)
            children = filter_items(children, navigation_type)
            children = apply_hook(children, '%s.has_children' % navigation_type)
            tree_item.has_children = len(children) > 0
def update_has_children(self, tree_alias, tree_items, navigation_type):
        get_children = self.get_children
        filter_items = self.filter_items
        apply_hook = self.apply_hook

        for tree_item in tree_items:
            children = get_children(tree_alias, tree_item)
            children = filter_items(children, navigation_type)
            children = apply_hook(children, '%s.has_children' % navigation_type)
            tree_item.has_children = len(children) > 0
def update_has_children ( self , tree_alias , tree_items , navigation_type ) : get_children = self . get_children filter_items = self . filter_items apply_hook = self . apply_hook for tree_item in tree_items : children = get_children ( tree_alias , tree_item ) children = filter_items ( children , navigation_type ) children = apply_hook ( children , '%s.has_children' % navigation_type ) tree_item . has_children = len ( children ) > 0
Updates 'has_children' attribute for tree items inplace.

        :param str|unicode tree_alias:
        :param list tree_items:
        :param str|unicode navigation_type: sitetree, breadcrumbs, menu
Updates has_children attribute for tree items inplace .