##parameters=ob
from Products.CMFCore.utils import getUtilityByInterfaceName
utool = getUtilityByInterfaceName('Products.CMFCore.interfaces.IURLTool')
+wftool = getUtilityByInterfaceName('Products.CMFCore.interfaces.IWorkflowTool')
locale_date_fmt = context.locale_date_fmt()
infos = {'checkbox' : True,
'url' : ob.absolute_url(),
'position' : context.getObjectPosition(ob.getId()),
'type' : ob.Type() or None,
'id' : ob.getId(),
- 'icon': '%s/%s' % (utool(), ob.getIcon())}
+ 'icon': '%s/%s' % (utool(), ob.getIcon()),
+ 'state' : wftool.getInfoFor(ob, 'review_state')}
return context.folder_jsupload_snippet_template(listItemInfos=[infos])
\ No newline at end of file