On Jul 7, 2006, at 6:17 AM, spako wrote:

i think... here's the patch:

/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) &
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


Are you sure this is correct? You are using a bitwise '&' in your if statement. You probably meant &&, in Python you should be using the 'and' keyword.

Don


--~--~---------~--~----~------------~-------~--~----~
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