projects
/
Portfolio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Optimisation
[Portfolio.git]
/
skins
/
photo_download.py
diff --git
a/skins/photo_download.py
b/skins/photo_download.py
index
3a185fd
..
674a2ae
100755
(executable)
--- a/
skins/photo_download.py
+++ b/
skins/photo_download.py
@@
-1,5
+1,6
@@
req = context.REQUEST
resp = req.RESPONSE
req = context.REQUEST
resp = req.RESPONSE
-resp.setHeader('Content-Disposition', 'attachment; filename=%s' % context.getId())
+filename = getattr(context, 'orig_name', context.getId())
+resp.setHeader('Content-Disposition', 'attachment; filename=%s' % filename)
return context.index_html(req, resp)
return context.index_html(req, resp)