FieldStorage and standard files

Michał Kurowski mkur at poczta.gazeta.pl
Thu Aug 21 22:23:43 CEST 2003


Hi,

That's probably an easy one:

I need to make a FiledStorage instances form usual unix filesystem
files.
When I do:

fp = open('a file', 'r')
fs = cgi.Filed.Storage(fp=fp)

... the "fs" does not know it has a file and I cannot pass it
further, etc.

What's the trick ?


-- 
Michal Kurowski
<mkur at poczta.gazeta.pl>




More information about the Python-list mailing list