projects
/
Portfolio.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Définition du comportement par défaut pour les requêtes ajax quelconques : on utilise...
[Portfolio.git]
/
skins
/
photo_download.py
1
req
=
context
.
REQUEST
2
resp
=
req
.
RESPONSE
3
filename
=
getattr
(
context
,
'orig_name'
,
context
.
getId
())
4
resp
.
setHeader
(
'Content-Disposition'
,
'attachment; filename=
%s
'
%
filename
)
5
6
return
context
.
index_html
(
req
,
resp
)