use urllib library to have an upload status bar

Larry Bates larry.bates at websafe.com
Fri Apr 27 19:07:44 CEST 2007


shirish wrote:
> Hi all,
>      Before I start, please know that I'm no developer, just a user.
> This is also a cross-post as I have tried to post the same at python-
> bugs mailing list, just don't know if it gets in or not.
> 
>  We have a bug-reporting system in ubuntu called apport. Apparently
> apport uses a python library called urllib. As of now, apport does a
> bouncing bar while uploading which doesn't give the user idea as to
> how much is being uploaded. Refer https://bugs.launchpad.net/ubuntu/+source/apport/+bug/91521
> . I did try to see if this issue has been addressed or not but came
> nowhere. It would be nice to know if there are some solutions, or is
> there a roadmap where this feature would be integrated in the library.
> Looking forward to suggestions, additions, flames & constructive
> criticism of the same. Keep up the good work. Cheers!
> 

the generic http browser upload doesn't give you any opportunity to
have a callback so you can update the screen with any progress.
There are some Java solutions available, but IMHO it will take a
major change to browser's http upload implementation to make this
possible.

-Larry



More information about the Python-list mailing list