Re: Zip multiple files into a zipped folder for download?

2009-09-14 Thread DjangoRocks
To Dj Gilcrease: hi, the link which u have sent me expired. May i know if you can repaste the code again if it is not too much trouble for u? Best Regards, Eugene On Sep 4, 11:11 pm, Dj Gilcrease wrote: > Here is how I do ithttp://dpaste.com/89530/ > > I am using a View class that I wrote to m

Re: Zip multiple files into a zipped folder for download?

2009-09-13 Thread DjangoRocks
ok thank you guys! I'll test it out and see how it goes. BEst Regards, Eugene On Sep 4, 11:11 pm, Dj Gilcrease wrote: > Here is how I do ithttp://dpaste.com/89530/ > > I am using a View class that I wrote to make my life easier so it wont > directly translate to a standard view function but it

Re: Zip multiple files into a zipped folder for download?

2009-09-04 Thread Dj Gilcrease
Here is how I do it http://dpaste.com/89530/ I am using a View class that I wrote to make my life easier so it wont directly translate to a standard view function but it should give you enough details to get you started --~--~-~--~~~---~--~~ You received this mess

Re: Zip multiple files into a zipped folder for download?

2009-09-04 Thread Tim Chase
> I've got an advanced question. I'm not sure it's *that* advanced :) > How do i create a zip file that contain multiple files and folders in > the zip file? You can use Python's built-in zipfile[1] module. import cStringIO as cs import zipfile as z f = cs.StringIO() # or a file on di

Zip multiple files into a zipped folder for download?

2009-09-04 Thread DjangoRocks
Hi all, I've got an advanced question. How do i create a zip file that contain multiple files and folders in the zip file? For example, within the zip it contains: folder.zip -> file1.php -> file2.php -> file3.html -> folder ---> fileInFolder1.css ---> fileInFolder.html ---> fileInF