On Sep 5, 2009, at 8:53 AM, Jose wrote:
>> Try adding 'import errno' to streamer.py.
>
>
> with import errno does not show error, but still not working.
What does "not working" mean, exactly?
Jose, are you using wsgi? Until somebody who knows more about it that
I do responds, you might try replacing the two file_streamer() calls
with streamer(), just to see if it makes a difference (that is, back
out the wsgi streamer logic as a test).
This isn't relevant to your problem, but I notice that streamer.py
still has some literal errno references:
except IOError, e:
if e[0] in (13, 21):
raise HTTP(403)
else:
raise HTTP(404)
stream.seek(part[0])
headers['Content-Range'] = 'bytes %i-%i/%i' % part
headers['Content-Length'] = '%i' % bytes
raise HTTP(206, file_streamer(stream, chunk_size=chunk_size,
bytes=bytes), **headers)
else:
try:
stream = open(static_file, 'rb')
except IOError, e:
if e[0] in (13, 21):
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---