تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3386 أدوات العرض

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?

 

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
مارس 15
12838
3
يوليو 25
8570
1
مايو 25
863
0
يناير 24
1643
1
فبراير 22
23693