Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3354 Visualizzazioni

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
mar 15
12705
1
mag 25
804
0
gen 24
1572
2
mag 23
8440
1
feb 22
23594