R: R: [mod_python] problem in file download

Dustin Mitchell dustin at ywlcs.org
Thu Jun 6 22:44:43 EST 2002


>         for m in field.file.__methods__:
>             self.__dict__[m] = getattr(field.file, m)
> 
>         self.headers = field.headers
>         self.filename = field.filename

Untested in this instance, but in similar situations the equivalent of
dir(field.file) has worked for me.  It does all the chasing up the
inheritance hierarchy necessary.

Dustin

-- 

  Dustin Mitchell
  dustin at ywlcs.org
  http://people.cs.uchicago.edu/~dustin/



More information about the Mod_python mailing list