Se rendre au contenu
Menu
Cette question a été signalée
3355 Vues

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
Ignorer
Publications associées Réponses Vues Activité
0
mars 15
12706
1
mai 25
806
0
janv. 24
1575
2
mai 23
8443
1
févr. 22
23595