Author: jacob
Date: 2007-02-26 12:52:15 -0600 (Mon, 26 Feb 2007)
New Revision: 4615
Modified:
django/trunk/django/http/__init__.py
Log:
Fixed another Python 2.3 bug (this one on django.http.parse_file_upload). I
think there's one left.
Modified: django/trunk/django/http/__init__.py
===================================================================
--- django/trunk/django/http/__init__.py 2007-02-26 18:50:55 UTC (rev
4614)
+++ django/trunk/django/http/__init__.py 2007-02-26 18:52:15 UTC (rev
4615)
@@ -52,7 +52,7 @@
POST = MultiValueDict()
FILES = MultiValueDict()
for submessage in msg.get_payload():
- if isinstance(submessage, email.Message.Message):
+ if submessage and isinstance(submessage, email.Message.Message):
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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" 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/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---