Zipping Files to user defined Directory
Danny Milosavljevic
danny_milo at yahoo.com
Sat Sep 2 12:45:26 EDT 2006
Hi,
On Fri, 28 Jul 2006 05:25:38 -0700, OriginalBrownster wrote:
> Marc 'BlackJack' Rintsch wrote:
>> In <1154055565.502991.252710 at p79g2000cwp.googlegroups.com>,
>> OriginalBrownster wrote:
>>
[...]
>> After the user selected the files you have to zip them on the server,
>> for instance in a temporary in the `/tmp/` directory and then deliver
>> that archive to the user.
>>
>> Ciao,
>> Marc 'BlackJack' Rintsch
>
>
> THanks Marc,
>
> That makes sense. I can zip the files to a temp directory. However, How
> do I deliver the archive to them?...
Like you deliver any other content in a cgi (assuming you are using a cgi):
By printing in on standard output.
I don't know "TurboGears" though.
cheers,
Danny
More information about the Python-list
mailing list