http://docs.python.org/library/zipfile.html

It's part of the python standard library.

On Thursday, March 22, 2012 6:03:41 AM UTC-7, Neveen Adel wrote:
>
> Hello, 
>
> Am generating xls file using the following code: 
>       response.headers['Content-​Type'] = 
> gluon.contenttype.contenttype(​'.xls') 
>      response.headers['Content-​disposition'] = 'attachment; 
> filename=file.xls' 
>
>      today = str(datetime.today()) 
>      wbk.save("temp1"+today+".xls"​) 
>      f = open("temp1"+today+".xls", 'r') 
>      out= f.read() 
>      f.close() 
>
>      return out 
>
>
> How can zip file.xls and return it ?? 
>
> could you please any Advices ??

Reply via email to