projects
/
Portfolio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
Products/Portfolio/skins/photo_download.py
@@ -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)