Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
3364 Visualizações

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?

 

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
0
mar. 15
12740
3
jul. 25
8507
1
mai. 25
826
0
jan. 24
1596
1
fev. 22
23628