FieldStorage and standard files

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Micha³ Kurowski

    FieldStorage and standard files


    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.Stora ge(fp=fp)

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

    What's the trick ?


    --
    Michal Kurowski
    <[email protected] zeta.pl>
Working...