[ZPT] How to create a file "on the fly" ?

Kenneth Gonsalves lawgon at thenilgiris.com
Thu Oct 13 05:59:45 EDT 2005


On Thursday 13 Oct 2005 2:04 pm, Nicolas Georgakopoulos wrote:
> I have a page that users fill info and a  button to submit that info.
> When the button is pressed I want to create a file with some text
> content. 1.How can I create a file to send it by mail ?
> 2.When I have send the file by mail I want the file to be deleted.
> How I delete a file?
>
> The file I want to create must be text file with unicode support.

you need to use the stringIO module, which means an external method
-- 
regards
kg

http://www.livejournal.com/users/lawgon
tally ho! http://avsap.org.in
ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!


More information about the ZPT mailing list