Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

python ajax progress bar

Name: Anonymous 2009-09-12 19:04

Hi /prog/,

I'm making a progress bar for a file upload, for a website. I was going to have two python scripts- The first gets submitted a file, logs the total, and then starts writing it to disk. The second script is called on by the javascript (ajax) to return how much has been written to disk so far and the total.

The problem is how do I get the second script aware of the total each time? I could use SQL but I feel like that's too much. I also looked at solutions like Tokyo Cabinet and memcached, but still I feel like there must be a more elegant simple solution.

Thoughts?

Name: Anonymous 2009-09-12 19:12

You could not use two scripts.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List