On Aug 15, 10:33 am, SamDonaldson <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm a bit confused about an object type in pylons.  Basically, we're
> implementing posting of images on my site.  Now the action in the
> controller basically defines the variable that will hold the file
> image on a multipart form POST.  My question is, what is the type of
> this object.  I'm printing it out but I'm getting type <instance>.  If
> I print the object out as a __dict__, I see quite a few elements in
> the object but again, I can't tell what object type that is.  Is it a
> FileIO object, StringIO, regular file or what?  I'm able to get the
> filename out of the object by doing something like file0.filename, so
> that attribute is set but I can't find the matching object instance
> type in the python docs.  Is this a special Pylons type?  If so, how
> can I reconstruct such a type using binary image data?
>
> Thanks,
>
> Sam

It's a FieldStorage object from cgi module. I believe Paste modifies
it a bit (something with changing the __repr__).

Ksenia.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to