Back to index

plone3  3.1.7
file_view.py
Go to the documentation of this file.
00001 ##parameters=
00002 ##
00003 from Products.CMFDefault.utils import decode
00004 
00005 options = {}
00006 options['title'] = context.Title()
00007 options['description'] = context.Description()
00008 options['content_type'] = context.getContentType()
00009 options['id'] = context.getId()
00010 options['size'] = context.get_size()
00011 options['url'] = context.absolute_url()
00012 
00013 return context.file_view_template(**decode(options, script))