Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3766 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
13222
3
lip 25
9166
1
maj 25
1407
0
sty 24
2039
1
lut 22
24347