(self, budget_line, matrixbox=0)
return [[i[0] for i in node_item_list if i[0] in variation_category_list]]
The cell range added by this variation
The cell range added by this variation
The cell range added by this variation
def getCellRangeForBudgetLine(self, budget_line, matrixbox=0):
    """The cell range added by this variation
    """
    base_category = self.getProperty('variation_base_category')
    prefix = ''
    if base_category:
      prefix = '%s/' % base_category

    node_item_list = [('%s%s' % (prefix, node.getRelativeUrl()),
                       self._getNodeTitle(node))
                           for node in self._getNodeList(budget_line)]
    variation_category_list = budget_line.getVariationCategoryList()
    if matrixbox:
      return [[i for i in node_item_list if i[0] in variation_category_list]]
    return [[i[0] for i in node_item_list if i[0] in variation_category_list]]
def getCellRangeForBudgetLine ( self , budget_line , matrixbox = 0 ) : base_category = self . getProperty ( 'variation_base_category' ) prefix = '' if base_category : prefix = '%s/' % base_category node_item_list = [ ( '%s%s' % ( prefix , node . getRelativeUrl ( ) ) , self . _getNodeTitle ( node ) ) for node in self . _getNodeList ( budget_line ) ] variation_category_list = budget_line . getVariationCategoryList ( ) if matrixbox : return [ [ i for i in node_item_list if i [ 0 ] in variation_category_list ] ] return [ [ i [ 0 ] for i in node_item_list if i [ 0 ] in variation_category_list ] ]