eggification
[Portfolio.git] / Products / Portfolio / skins / photo_download.py
diff --git a/Products/Portfolio/skins/photo_download.py b/Products/Portfolio/skins/photo_download.py
new file mode 100755 (executable)
index 0000000..674a2ae
--- /dev/null
@@ -0,0 +1,6 @@
+req = context.REQUEST
+resp = req.RESPONSE
+filename = getattr(context, 'orig_name', context.getId())
+resp.setHeader('Content-Disposition', 'attachment; filename=%s' % filename)
+
+return context.index_html(req, resp)