Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
3395 Переглядів

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?

 

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
бер. 15
12857
3
лип. 25
8615
1
трав. 25
908
0
січ. 24
1651
1
лют. 22
23743