Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
3517 Tampilan

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
Buang
Post Terkait Replies Tampilan Aktivitas
0
Mar 15
13013
3
Jul 25
8859
1
Mei 25
1115
0
Jan 24
1806
1
Feb 22
23973