FieldStorage and standard files

Discussion in 'Python' started by =?ISO-8859-2?Q?Micha=B3?= Kurowski, Aug 21, 2003.

  1. 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
    <>
     
    =?ISO-8859-2?Q?Micha=B3?= Kurowski, Aug 21, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. python user

    libapreq2 and cgi.FieldStorage

    python user, Jul 9, 2004, in forum: Python
    Replies:
    0
    Views:
    343
    python user
    Jul 9, 2004
  2. Austyn Bontrager

    cgi.FieldStorage and REDIRECT_REQUEST_METHOD

    Austyn Bontrager, Jul 28, 2004, in forum: Python
    Replies:
    1
    Views:
    476
    Lee Harr
    Jul 28, 2004
  3. Ames Andreas (MPA/DF)
    Replies:
    0
    Views:
    285
    Ames Andreas (MPA/DF)
    Aug 5, 2004
  4. Ames Andreas (MPA/DF)
    Replies:
    1
    Views:
    299
    Tim Roberts
    Aug 8, 2004
  5. Neil Benn

    CGI, FieldStorage and Filename

    Neil Benn, Mar 30, 2005, in forum: Python
    Replies:
    0
    Views:
    372
    Neil Benn
    Mar 30, 2005
Loading...

Share This Page