[Catalyst] Line buffered output with Catalyst?

Dylan Vanderhoof DylanV at semaphore.com
Wed May 31 02:48:49 CEST 2006


Ah ha.  Thanks, I'll give that a shot.  =)

In this case, just some feel-good stuff to present to the web client
while doing some rather lengthy DB config steps in the background.  I
prefer to give people useful information rather than a progress bar or
"please wait" animation.  Must be the engineer in me.  Heh

-Dylan

> -----Original Message-----
> From: Matt S Trout [mailto:dbix-class at trout.me.uk] 
> Sent: Tuesday, May 30, 2006 12:40 PM
> To: The elegant MVC web framework
> Subject: Re: [Catalyst] Line buffered output with Catalyst?
> 
> 
> Dylan Vanderhoof wrote:
> > Is there a way to do line buffered output with Catalyst?  Need to
> > present the results of an ongoing process (some 
> auto-provisioning stuff)
> > and I'm not certain how to approach this with Catalyst.
> 
> $c->finalize_headers;
> 
> while (defined (my $chunk = $process->fetch_chunk)) {
>    $c->engine->write($chunk);
> }
> 
> should work, though I'm not really an expert on Engine 
> hackery so others 
> may wish to correct/augment that suggestion.
> 
> What sort of auto-provisioning stuff btw? I *am* something of an 
> exp^H^Hnthusiast when it comes to those (I originally got 
> involved with 
> Catalyst to make it less boring to build web front-ends for our ISP 
> automation clients :)
> 
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
> 



More information about the Catalyst mailing list