Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > FieldStorage and standard files

Thread Tools

FieldStorage and standard files

=?ISO-8859-2?Q?Micha=B3?= Kurowski
Posts: n/a


That's probably an easy one:

I need to make a FiledStorage instances form usual unix filesystem
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
<(E-Mail Removed)>
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
CGI, FieldStorage and Filename Neil Benn Python 0 03-30-2005 06:56 PM
q about cgi.FieldStorage (was: And now to sth. completely Ames Andreas (MPA/DF) Python 1 08-08-2004 05:20 AM
And now to sth. completely different: Forget about decorators,think cgi.FieldStorage Ames Andreas (MPA/DF) Python 0 08-05-2004 04:48 PM
cgi.FieldStorage and REDIRECT_REQUEST_METHOD Austyn Bontrager Python 1 07-28-2004 06:50 PM
libapreq2 and cgi.FieldStorage python user Python 0 07-09-2004 06:09 PM