Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
3538 Vizualizări

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?

 

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
mar. 15
13038
3
iul. 25
8887
1
mai 25
1142
0
ian. 24
1821
1
feb. 22
24012