def folderitem(self, obj, item, index):
        """Applies new properties to the item (Client) that is currently being
        rendered as a row in the list

        :param obj: client to be rendered as a row in the list
        :param item: dict representation of the client, suitable for the list
        :param index: current position of the item within the list
        :type obj: ATContentType/DexterityContentType
        :type item: dict
        :type index: int
        :return: the dict representation of the item
        :rtype: dict
        """

        url = obj.absolute_url()
        title = obj.Title()

        item["replace"]["Title"] = get_link(url, value=title)

        instruments = obj.getInstruments()
        if instruments:
            links = map(
                lambda i: get_link(i.absolute_url(), i.Title()), instruments)
            item["replace"]["Instrument"] = ", ".join(links)
        else:
            item["Instrument"] = ""

        calculation = obj.getCalculation()
        if calculation:
            title = calculation.Title()
            url = calculation.absolute_url()
            item["Calculation"] = title
            item["replace"]["Calculation"] = get_link(url, value=title)
        else:
            item["Calculation"] = ""

        manual_entry_of_results_allowed = obj.isManualEntryOfResults()
        item["ManualEntry"] = manual_entry_of_results_allowed
        item["replace"]["ManualEntry"] = " "
        if manual_entry_of_results_allowed:
            item["replace"]["ManualEntry"] = get_image("ok.png")

        return item
def folderitem ( self , obj , item , index ) : url = obj . absolute_url ( ) title = obj . Title ( ) item [ "replace" ] [ "Title" ] = get_link ( url , value = title ) instruments = obj . getInstruments ( ) if instruments : links = map ( lambda i : get_link ( i . absolute_url ( ) , i . Title ( ) ) , instruments ) item [ "replace" ] [ "Instrument" ] = ", " . join ( links ) else : item [ "Instrument" ] = "" calculation = obj . getCalculation ( ) if calculation : title = calculation . Title ( ) url = calculation . absolute_url ( ) item [ "Calculation" ] = title item [ "replace" ] [ "Calculation" ] = get_link ( url , value = title ) else : item [ "Calculation" ] = "" manual_entry_of_results_allowed = obj . isManualEntryOfResults ( ) item [ "ManualEntry" ] = manual_entry_of_results_allowed item [ "replace" ] [ "ManualEntry" ] = " " if manual_entry_of_results_allowed : item [ "replace" ] [ "ManualEntry" ] = get_image ( "ok.png" ) return item
Applies new properties to the item (Client) that is currently being
        rendered as a row in the list

        :param obj: client to be rendered as a row in the list
        :param item: dict representation of the client, suitable for the list
        :param index: current position of the item within the list
        :type obj: ATContentType/DexterityContentType
        :type item: dict
        :type index: int
        :return: the dict representation of the item
        :rtype: dict