All pastes #925980 Raw Edit

Unnamed

public text v1 · immutable
·published 2008-03-03 13:45 UTC
rendered paste body
This callable is defined in the folderish object view definition python file. This is fed to a zc.table column which in turn receives a collection of items that this folder object contains (obtained from a portal_catalog search) - zc.table automatically passes the item as argument so that I can generate the info for the column value:

def buyItem(item, formatter):
      return '<a href="%s/@@dtportal.ecommerce-buy">%s</a>' % (item.getPath(), _(u"Buy"))