def folderitem(self, obj, item, index):
        """Service triggered each time an item is iterated in folderitems.
        The use of this service prevents the extra-loops in child objects.
        :obj: the instance of the class to be foldered
        :item: dict containing the properties of the object to be used by
            the template
        :index: current index of the item
        """
        title = obj.Title()
        description = obj.Description()
        url = obj.absolute_url()

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

        manager = obj.getManager()
        manager_name = obj.getManagerName()
        manager_phone = obj.getManagerPhone()
        manager_email = obj.getManagerEmail()

        if manager:
            item["Manager"] = manager_name
            item["replace"]["Manager"] = get_link(
                manager.absolute_url(), manager_name)
        else:
            item["Manager"] = ""

        if manager_email:
            item["ManagerEmail"] = manager_email
            item["replace"]["ManagerEmail"] = get_email_link(
                manager_email, value=manager_email)
        else:
            item["ManagerEmail"] = ""

        item["ManagerPhone"] = manager_phone

        return item
def folderitem ( self , obj , item , index ) : title = obj . Title ( ) description = obj . Description ( ) url = obj . absolute_url ( ) item [ "replace" ] [ "Title" ] = get_link ( url , value = title ) item [ "Description" ] = description manager = obj . getManager ( ) manager_name = obj . getManagerName ( ) manager_phone = obj . getManagerPhone ( ) manager_email = obj . getManagerEmail ( ) if manager : item [ "Manager" ] = manager_name item [ "replace" ] [ "Manager" ] = get_link ( manager . absolute_url ( ) , manager_name ) else : item [ "Manager" ] = "" if manager_email : item [ "ManagerEmail" ] = manager_email item [ "replace" ] [ "ManagerEmail" ] = get_email_link ( manager_email , value = manager_email ) else : item [ "ManagerEmail" ] = "" item [ "ManagerPhone" ] = manager_phone return item
Service triggered each time an item is iterated in folderitems.
        The use of this service prevents the extra-loops in child objects.
        :obj: the instance of the class to be foldered
        :item: dict containing the properties of the object to be used by
            the template
        :index: current index of the item