Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
3437 Visninger

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
0
mar. 15
12916
3
jul. 25
8723
1
maj 25
1023
0
jan. 24
1708
1
feb. 22
23854