[cgiapp] Re: CAP::ValidateRM install failure

2008-05-07 Thread Robert Hicks
Alexandr Ciornii wrote: Hello. It seems that HTML::FillInFrom fixed a bug in 1.07 and tests relied on incorrect behaviour. So skipping this test should be ok. I have provided more information here: http://rt.cpan.org/Ticket/Display.html?id=35056 I forced it and it still won't work for me (I

[cgiapp] tiny refactoring (extract hard-coded HTML::Template name)

2008-05-07 Thread Rhesa Rozendaal
The diff (against 4.07_02) below extracts the hard-coded HTML::Template classname from load_tmpl. This should make it easier to drop in a replacement module, and it will certainly simplify maintenance of both CGI::Application::Plugin::HTDot and your CGI::Application::Plugin::HTCompiled, since

Re: [cgiapp] Best practices for returning 404/file-not-found pages inside and outside of mod_perl

2008-05-07 Thread Rhesa Rozendaal
Mark Stosberg wrote: In the past, the way I returned 404 page through CGI::App was something like this: return $self-error(title = 'Page not found'); I learned that is too late to return a real 404 error running under CGI, so the page comes back with a 200 status code, which isn't quite

[cgiapp] Re: tiny refactoring (extract hard-coded HTML::Template name)

2008-05-07 Thread Mark Stosberg
Thanks for the contribution, Rhesa. Come feedback is below. On Wed, 07 May 2008 15:12:37 +0200 Rhesa Rozendaal [EMAIL PROTECTED] wrote: The diff (against 4.07_02) below extracts the hard-coded HTML::Template classname from load_tmpl. This should make it easier to drop in a replacement

[cgiapp] Re: Best practices for returning 404/file-not-found pages inside and outside of mod_perl

2008-05-07 Thread Mark Stosberg
In the past, the way I returned 404 page through CGI::App was something like this: return $self-error(title = 'Page not found'); I learned that is too late to return a real 404 error running under CGI, so the page comes back with a 200 status code, which isn't quite right.

[cgiapp] Re: CAP::ValidateRM install failure

2008-05-07 Thread Mark Stosberg
On Wed, 07 May 2008 07:59:24 -0400 Robert Hicks [EMAIL PROTECTED] wrote: Alexandr Ciornii wrote: Hello. It seems that HTML::FillInFrom fixed a bug in 1.07 and tests relied on incorrect behaviour. So skipping this test should be ok. I have provided more information here:

[cgiapp] Re: Best practices for returning 404/file-not-found pages inside and outside of mod_perl

2008-05-07 Thread Mark Stosberg
I learned that is too late to return a real 404 error running under CGI, so the page comes back with a 200 status code, which isn't quite right. More recently, I learned that with mod_perl, I learned that I can get the system to return a true 404, so I updated the logic to do that

[cgiapp] passing in a param from another runmode

2008-05-07 Thread Robert Hicks
I have a runmode that goes back to home when finished: $self-home; I would like to send a flag back to home (0 for bad and 1 for good) so a param in home can be set. I looked in the C::A docs but didn't find it or I missed it (entirely possible). =) Robert # CGI::Application

Re: [cgiapp] passing in a param from another runmode

2008-05-07 Thread Mark Fuller
On Wed, May 7, 2008 at 12:18 PM, Robert Hicks [EMAIL PROTECTED] wrote: I have a runmode that goes back to home when finished: $self-home; I would like to send a flag back to home (0 for bad and 1 for good) so a param in home can be set. From the runmode (method) you want to return back

[cgiapp] Re: passing in a param from another runmode

2008-05-07 Thread Robert Hicks
Mark Fuller wrote: On Wed, May 7, 2008 at 12:18 PM, Robert Hicks [EMAIL PROTECTED] wrote: I have a runmode that goes back to home when finished: $self-home; I would like to send a flag back to home (0 for bad and 1 for good) so a param in home can be set. From the runmode (method) you

[cgiapp] Re: passing in a param from another runmode

2008-05-07 Thread Robert Hicks
Mark Fuller wrote: On Wed, May 7, 2008 at 12:53 PM, Robert Hicks [EMAIL PROTECTED] wrote: That would be for H::T correct? I use TT and the line that I output looks like: return $self-tt_process( 'home.html', \%params ); Yes, same thing. The idea is, from the invoked runmode/method you