Skip to Content
Menu
This question has been flagged
3457 Zobrazenia

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šiť
Related Posts Replies Zobrazenia Aktivita
0
mar 15
12929
3
júl 25
8745
1
máj 25
1041
0
jan 24
1725
1
feb 22
23882