On Jun 27, 3:16 pm, "Mike Orr" <[EMAIL PROTECTED]> wrote:

> I got that same problem.  it's a bug in the upload object used by
> cgi.FieldStorage.  You can't test it for truth or booleanize it.

Nice to know I'm not alone.  Or a really inept programmer.


> Instead you can compare it to None:
>
> if self.form_result["myfile"] is not None:
>
> Or you can check if it has an attribute like 'filename', which an
> actual upload would.


great ideas.  much better than my attempts.
--~--~---------~--~----~------------~-------~--~----~
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