Localisation.
[Plinn.git] / skins / generic / folder_jsupload_snippet.py
1 ##parameters=ob
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(),
7 'lock' : False,
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,
12 'id' : ob.getId(),
13 'icon': '%s/%s' % (utool(), ob.getIcon())}
14
15 return context.folder_jsupload_snippet_template(listItemInfos=[infos])