跳至內容
選單
此問題已被標幟
3412 瀏覽次數

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
12875
3
7月 25
8654
1
5月 25
948
0
1月 24
1680
1
2月 22
23781