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

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
12891
3
7月 25
8689
1
5月 25
1006
0
1月 24
1693
1
2月 22
23813