Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
3865 Prikazi

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
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
mar. 15
13328
3
jul. 25
9283
1
maj 25
1493
0
jan. 24
2114
1
feb. 22
24473