i've had a look and did actually use the keyword 'and', i think i made
the patch in haste before i tested and corrected it, the patch should
be:

/django/http/__init__.py

Index: __init__.py
===================================================================
--- __init__.py (revision 3287)
+++ __init__.py (working copy)
@@ -48,7 +48,7 @@
     POST = MultiValueDict()
     FILES = MultiValueDict()
     for submessage in msg.get_payload():
-        if isinstance(submessage, email.Message.Message):
+        if isinstance(submessage, email.Message.Message) and
submessage['Content-Disposition'] != None:
             name_dict =
parse_header(submessage['Content-Disposition'])[1]
             # name_dict is something like {'name': 'file', 'filename':
'test.txt'} for file uploads
             # or {'name': 'blah'} for POST fields

to note Malcom mentioned another fix for this in the original thread:
http://groups.google.com/group/django-users/browse_thread/thread/f0458e24fda970ab/49b7c48bbcfe24df#49b7c48bbcfe24df


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to