跳至内容
菜单
此问题已终结
3526 查看

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
13027
3
7月 25
8867
1
5月 25
1123
0
1月 24
1811
1
2月 22
23978