2 from Products
.CMFCore
.utils
import getUtilityByInterfaceName
3 utool
= getUtilityByInterfaceName('Products.CMFCore.interfaces.IURLTool')
4 locale_date_fmt
= context
.locale_date_fmt()
5 infos
= {'checkbox' : True,
6 'url' : ob
.absolute_url(),
8 'modified' : ob
.modified().strftime(locale_date_fmt
),
9 'title_or_id' : ob
.title_or_id(),
10 'position' : context
.getObjectPosition(ob
.getId()),
11 'type' : ob
.Type() or None,
13 'icon': '%s/%s' % (utool(), ob
.getIcon())}
15 return context
.folder_jsupload_snippet_template(listItemInfos
=[infos
])