Re: mp2: push_handlers / set_handlers vs. Perl*Handler

2006-09-13 Thread Jeremy Nixon
Fred Moyer <[EMAIL PROTECTED]> wrote: > But... once I changed my return codes to allow the other handlers to > return DECLINED instead of OK in a couple of particular situations, > push_handlers() behaved as I would have expected it to. I'm guessing > that your PerlFixupHandler is set to return

Re: mp2: push_handlers / set_handlers vs. Perl*Handler

2006-09-13 Thread Fred Moyer
Jeremy Nixon wrote: > Fred Moyer <[EMAIL PROTECTED]> wrote: > >> But... once I changed my return codes to allow the other handlers to >> return DECLINED instead of OK in a couple of particular situations, >> push_handlers() behaved as I would have expected it to. I'm guessing >> that your PerlFi

Re: Can't locate "FIRSTKEY" error

2006-09-13 Thread Aaron Trevena
On 13/09/06, Randy Kobes <[EMAIL PROTECTED]> wrote: Within Apache::MVC, at the start where it requires a bunch of mp2 modules, does adding require APR::Table; help? I'll try it. ..Which means installimg mod_perl 2.x in various ways and hoping to replicate the error. Oh Joy. A. -- http://

design patters with mod_perl

2006-09-13 Thread Greger
Is there anything in particular that one should take into account regarding modperl and design patterns vs trad CGI-scripting? As for now, I return XML from the package methods, and use XSLT for the transformation to XHTML. This works very well, seems flexible, but are there better ways? I guess

Re: design patters with mod_perl

2006-09-13 Thread John ORourke
Greger, Greger wrote: Is there anything in particular that one should take into account regarding modperl and design patterns vs trad CGI-scripting? As for now, I return XML from the package methods, and use XSLT for the transformation to XHTML. This works very well, seems flexible, but are th

Re: design patters with mod_perl

2006-09-13 Thread Tom Schindl
You might have a look at the following projects: - AxKit1 - http://search.cpan.org/~msergeant/AxKit-1.6.2/ - AxKit2 - http://search.cpan.org/~msergeant/AxKit2-1.1/ - Apache2::TomKit - http://search.cpan.org/~tomson/Apache2-TomKit-0.01_6/ Tom Greger schrieb: > Is there anything in particular that

Re: design patters with mod_perl

2006-09-13 Thread Frank Wiles
On Wed, 13 Sep 2006 13:03:55 +0300 "Greger" <[EMAIL PROTECTED]> wrote: > Is there anything in particular that one should take into account > regarding modperl and design patterns vs trad CGI-scripting? > > As for now, I return XML from the package methods, and use XSLT for > the transformation to

Re: design patters with mod_perl

2006-09-13 Thread Michael Greenish
I definitely recommend using a template engine and using an Model-View-Controller (MVC) framework; the template engine helps with the view part. I was first introduced to it on the tutorials under documentation on perl.apache.org. It took me a little while to figure out how to create & instantiate

Re: Can't locate "FIRSTKEY" error

2006-09-13 Thread Randy Kobes
On Wed, 13 Sep 2006, Aaron Trevena wrote: On 13/09/06, Randy Kobes <[EMAIL PROTECTED]> wrote: Within Apache::MVC, at the start where it requires a bunch of mp2 modules, does adding require APR::Table; help? I'll try it. ..Which means installimg mod_perl 2.x in various ways and hoping to

Re: Can't locate "FIRSTKEY" error

2006-09-13 Thread Aaron Trevena
On 13/09/06, Randy Kobes <[EMAIL PROTECTED]> wrote: On Wed, 13 Sep 2006, Aaron Trevena wrote: > ..Which means installimg mod_perl 2.x in various ways and hoping to > replicate the error. Oh Joy. I don't think this suggestion involves reinstalling mp2, or even altering anything in it. The origina

Re: Can't locate "FIRSTKEY" error

2006-09-13 Thread Perrin Harkins
On Wed, 2006-09-13 at 16:27 +0100, Aaron Trevena wrote: > Currently I don't have mp2 installed anywhere to hand, and the mp2 > code was all tested when I was developing against an mp2 system. Maybe the guy who reported the error on the Maypole list could test it for you. - Perrin

Re: Can't locate "FIRSTKEY" error

2006-09-13 Thread Aaron Trevena
On 13/09/06, Perrin Harkins <[EMAIL PROTECTED]> wrote: On Wed, 2006-09-13 at 16:27 +0100, Aaron Trevena wrote: > Currently I don't have mp2 installed anywhere to hand, and the mp2 > code was all tested when I was developing against an mp2 system. Maybe the guy who reported the error on the Maypo

Re: mp2: push_handlers / set_handlers vs. Perl*Handler

2006-09-13 Thread Geoffrey Young
> So I have been playing with different combinations of push_handlers() > and it looks like it's working properly for RUN_FIRST handlers (my > initial success with using DECLINED instead of OK) but not RUN_ALL > handlers. argh. > Here's the test case, run make test and check the log to see > wh

Re: design patters with mod_perl

2006-09-13 Thread Marc Slagle
Greger wrote: As for now, I return XML from the package methods, and use XSLT for the transformation to XHTML. This works very well, seems flexible, but are there better ways? I guess it all depends on what one is doing, naturally. In this case it is an application using the mysql database.

Re: design patters with mod_perl

2006-09-13 Thread Jonathan Vanasco
On Sep 13, 2006, at 9:28 AM, Frank Wiles wrote: What I typically recommend to people is that they use a template engine like Template-Toolkit.org. You simply pass it a Perl data structure and then you have all of the same transformation possibilities as XSLT ( at least as I understand

inserting handler/filter in main server vs. virtual host configuration?

2006-09-13 Thread Jeff Ambrosino
For httpd.conf in Apache 2.x / mp2, does it matter if I insert a handler in the main server section vs. a virtual host section? My question pertains specifically to performance/memory, as I already understand the logical implications. PerlChildInitHandler +MyStuff::InitHandler vs. PerlChi

Re: mod_perl and ssl

2006-09-13 Thread Jonathan Vanasco
in the past I've done: all port 80 and port 443 through proxy. SSL decrypted on proxy server. proxy server reverse proxies to mod_perl server. all port 80 through proxy. SSL decrypted on mod_perl mod_perl handles SSL as well. no proxy server. mp on port 80. mp SSL on 443 You

apache2 replacement for $Apache::Server::Restarting

2006-09-13 Thread johns
hi i'm moving into the 2.0 world and have run up against this problem: i can't find a replacment for $Apache::Server::Restarting. should i just install the Apache.pm module? -- \js oblique strategy: remove ambiguities and convert to specifics

Re: apache2 replacement for $Apache::Server::Restarting

2006-09-13 Thread Philip M. Gollucci
[EMAIL PROTECTED] wrote: hi i'm moving into the 2.0 world and have run up against this problem: i can't find a replacment for $Apache::Server::Restarting. should i just install the Apache.pm module? No, see here http://perl.apache.org/docs/2.0/api/Apache2/ServerUtil.html#C_restart_count_ --

Re: design patters with mod_perl

2006-09-13 Thread Greger
On Wed, 13 Sep 2006 13:50:27 -0400, Jonathan Vanasco wrote > On Sep 13, 2006, at 9:28 AM, Frank Wiles wrote: > > > What I typically recommend to people is that they use a template > > engine like Template-Toolkit.org. You simply pass it a Perl data > > structure and then you have all of the

Re: apache2 replacement for $Apache::Server::Restarting

2006-09-13 Thread Philip M. Gollucci
[EMAIL PROTECTED] wrote: and what's the replacement for Apache->define() to set -D options? http://perl.apache.org/docs/2.0/user/porting/compat.html#C_Apache_E_gt_define_ -- Philip M. Gollucci ([EMAIL PROTECTED]) 323.219.

Re: [RELEASE CANDIDATE]: Apache-Test-1.29-RC1

2006-09-13 Thread Philip M. Gollucci
Radoslaw Zielinski wrote: Philip M. Gollucci <[EMAIL PROTECTED]> [07-09-2006 20:07]: A release candidate for Apache-Test 1.29-RC1 is now available. $ make test [...] t/cookiesskipped all skipped: cannot find one of cgi or cgid t/next_available_portskipped all

Re: [RELEASE CANDIDATE]: Apache-Test-1.29-RC1

2006-09-13 Thread Radoslaw Zielinski
Philip M. Gollucci <[EMAIL PROTECTED]> [13-09-2006 21:50]: > Radoslaw Zielinski wrote: >> Philip M. Gollucci <[EMAIL PROTECTED]> [07-09-2006 20:07]: >>> A release candidate for Apache-Test 1.29-RC1 is now available. >> $ make test >> [...] >> t/cookiesskipped >> all skipped:

Re: design patters with mod_perl

2006-09-13 Thread Matt Sergeant
Frank Wiles wrote: What I typically recommend to people is that they use a template engine like Template-Toolkit.org. You simply pass it a Perl data structure and then you have all of the same transformation possibilities as XSLT ( at least as I understand it ). And if you ever need t