Skip to Content
Menu
This question has been flagged
2709 Views

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
Discard
Related Posts Replies Views Activity
0
Mar 15
8567
0
Jan 24
378
2
May 23
6768
1
Feb 22
21396
5
Dec 21
15004