sitetree/sitetreeapp.py
def tree_climber(self, tree_alias, base_item):
        """Climbs up the site tree to mark items of current branch.

        :param str|unicode tree_alias:
        :param TreeItemBase base_item:
        """
        if base_item is not None:
            base_item.in_current_branch = True
            if hasattr(base_item, 'parent') and base_item.parent is not None:
                self.tree_climber(tree_alias, self.get_item_by_id(tree_alias, base_item.parent.id))
def tree_climber(self, tree_alias, base_item):
        if base_item is not None:
            base_item.in_current_branch = True
            if hasattr(base_item, 'parent') and base_item.parent is not None:
                self.tree_climber(tree_alias, self.get_item_by_id(tree_alias, base_item.parent.id))
def tree_climber ( self , tree_alias , base_item ) : if base_item is not None : base_item . in_current_branch = True if hasattr ( base_item , 'parent' ) and base_item . parent is not None : self . tree_climber ( tree_alias , self . get_item_by_id ( tree_alias , base_item . parent . id ) )
Climbs up the site tree to mark items of current branch.

        :param str|unicode tree_alias:
        :param TreeItemBase base_item:
Climbs up the site tree to mark items of current branch .