readlines + InMemoryUploadedFile

17 views
Skip to first unread message

bo

unread,
Oct 15, 2008, 11:47:03 AM10/15/08
to Django developers
Hi Guys,

Is there a reason why InMemoryUploadedFile does not proxy readlines as
well from StringIO? seems like it should (especially if using PIL
directly from the uploaded file)

bo

Julien Phalip

unread,
Oct 15, 2008, 5:05:57 PM10/15/08
to Django developers
> Is there a reason why InMemoryUploadedFile does not proxy readlines as
> well from StringIO? seems like it should (especially if using PIL
> directly from the uploaded file)

I can't see any reason, you may want to open a ticket. There seems to
be a number of missing proxies. For example, 'tell()' is missing from
the Windows-specific implementation of TemporaryFile, which also
causes PIL to crash.
See: http://code.djangoproject.com/ticket/9344
Reply all
Reply to author
Forward
0 new messages