CGI output

Brad Bollenbach bbollenbach at home.com
Sat Nov 17 10:25:27 EST 2001


"Sebastien Delafond" <sdelafond at vertical.net> wrote in message
news:63343bfd.0111161819.14263d83 at posting.google.com...
> Hi,
>
> I'm using python to write a CGI interface providing my users with the
> ability to run a specific command, a.k.a. "command".
>
> This command takes about 3 to minutes to complete under normal
> conditions, and the current Python solution I'm using to run it
> prevent users to see its output before it's fully completed. I've
> tried calling this command with

[snip]

Before coming up with a solution for displaying a progress indicator in some
fashion (which is a nasty idea, over the web), consider speeding up your
algorithm, or moving the slow parts to C code. Maybe you're doing something
wrong, and should never have to even think of doing a "wait screen" of some
type (if the task can actually be completed in, say, 15 seconds).

Perhaps if you mentioned what you were doing, and what the slow parts of
your code are, we could help you with that. If you think theres /no way/ you
could make it this much faster, ask Guido:
http://python.org/doc/essays/list2str.html

I'd be interested in hearing more...

Hope that helps,

Brad





More information about the Python-list mailing list