コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3403 ビュー

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?

 

アバター
破棄
関連投稿 返信 ビュー 活動
0
3月 15
12866
3
7月 25
8632
1
5月 25
927
0
1月 24
1667
1
2月 22
23764