Back to index

plone3  3.1.7
at_download.py
Go to the documentation of this file.
00001 ## Script (Python) "at_download"
00002 ##title=Download a file keeping the original uploaded filename
00003 ##bind container=container
00004 ##bind context=context
00005 ##bind namespace=
00006 ##bind script=script
00007 ##bind subpath=traverse_subpath
00008 
00009 if traverse_subpath:
00010     field = context.getWrappedField(traverse_subpath[0])
00011 else:
00012     field = context.getPrimaryField()
00013 return field.download(context)