Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3466 Zobrazení

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?

 

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
bře 15
12938
3
čvc 25
8764
1
kvě 25
1066
0
led 24
1762
1
úno 22
23904