Re: [Catalyst] Sending email safely with Catalyst

2008-04-18 Thread Matt S Trout
On Sat, Apr 12, 2008 at 11:11:41AM +0200, Zbigniew Lukasiak wrote: My first approach was to do the sending in a cron job - but then came the requirement that the emails should be sent as soon as possible. Now I have a forking model, but I don't know if I implemented it correctly (the mod_perl

Re: [Catalyst] Sending email safely with Catalyst

2008-04-18 Thread Ashley
On Apr 18, 2008, at 10:54 AM, Matt S Trout wrote: On Sat, Apr 12, 2008 at 11:11:41AM +0200, Zbigniew Lukasiak wrote: My first approach was to do the sending in a cron job - but then came the requirement that the emails should be sent as soon as possible. Now I have a forking model, but I don't

Re: [Catalyst] Why does $c-stats require -Debug flag?

2008-04-18 Thread Matt S Trout
On Sat, Apr 12, 2008 at 08:37:49PM +0930, Jon Schutz wrote: Prior to 5.7012, $c-stats was an internal object (in so far as it was not documented as part of the API) so anyone manipulating it directly does so at their own risk. This one user who was kind enough to report it to the list will by

Re: [Catalyst] Testing View

2008-04-18 Thread Matt S Trout
On Thu, Apr 17, 2008 at 02:56:49PM +1000, Yao Wang wrote: Dear Friends, I have just started working on a project using Catalyst. I am trying my hand at testing and got the following issue :( I have created the following test file: my $c = MyApp - prepare();

Re: [Catalyst] Sending email safely with Catalyst

2008-04-18 Thread Kieren Diment
On 19 Apr 2008, at 06:31, Tatsuhiko Miyagawa wrote: On Fri, Apr 18, 2008 at 10:54 AM, Matt S Trout dbix- [EMAIL PROTECTED] wrote: But you're writing a new catalyst app, so you're deploying it under fastcgi, right? Really, mod_perl is a legacy deployment option. Don't. ...

[Catalyst] Re: doctype being modified

2008-04-18 Thread J . G . Konrad
I was able to write a test to prove this. the second test does not pass. $c-response-body('!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'); $c-finalize; like( $c-response-body, qr/^\!D/, 'correct doctype - no error' );

[Catalyst] Re: CGI::Dump()

2008-04-18 Thread Aristotle Pagaltzis
* Ashley [EMAIL PROTECTED] [2008-04-18 21:30]: push(@result,lib$param/b/li); push(@result,ul); That’s invalid HTML. You can’t put an `ul` directly inside a `ul` like that. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/

Re: [Catalyst] Re: CGI::Dump()

2008-04-18 Thread Ashley
I know. Grabbed it from CGI.pm without checking. It also returns the, I believe, illegal ul/ul when there are no params. :) If I ever do anything with it, I promise to fix it. On Apr 18, 2008, at 7:38 PM, Aristotle Pagaltzis wrote: * Ashley [EMAIL PROTECTED] [2008-04-18 21:30]:

[Catalyst] Re: CGI::Dump()

2008-04-18 Thread Aristotle Pagaltzis
Hi Ashley, my $t = sub { my $n = shift; @_ ? join(\n,$n,@_,/$n) : () ) } my $e = sub { HTML::Entities::encode($_) }; return $t-( ul = map { $t-( li = $t-( b = $e ), $t-( ul = map { $t-( li = $e ) } $c-req-param($_) ), ) } $c-req-param ); Untested. But it least it