Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3521 Widoki

I have a generated string and would like to send that as a file to the web client.

I have done that using http.Controller and

return request.make_response( document, headers=[ ('Content-Disposition', 
'attachment; filename="freebusy.ics"'),
('Content-ype', 'text/calendar'),
('Content-Length', len(document)), ])

I would like to do the same within models.Model method.

Is it possible?

 

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
mar 15
13021
3
lip 25
8861
1
maj 25
1121
0
sty 24
1810
1
lut 22
23975