Re: [mp2] Ported 3rd-party Modules

[prev] [thread] [next] [Date index for 2004/12/09]

From: Geoffrey Young
Subject: Re: [mp2] Ported 3rd-party Modules
Date: 02:34 on 09 Dec 2004

John D Groenveld wrote:
> <URL:http://perl.apache.org/products/apache-modules.html#Porting_CPAN_modules_to_mod_perl_2_0_Status>
> I've updated Apache::AuthenURL and Apache::DBILogin for mod_perl2.

just a few notes:

    return MP2 ? Apache::OK : Apache::Constants::OK;

if you don't use the -compile option to Apache::Const then these can both
just be OK (and the same with the other constants), which would make things
a bit easier on you.

    my $user = MP2 ? $r->user : $r->connection->user;

the $r->user alias to $r->connection->user has been available in mp1 since
1.24_01 (october 2000), which is another way to simplify things a bit.

HTH

--Geoff


        -- 
        Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

[mp2] Ported 3rd-party Modules
John D Groenveld 01:48 on 09 Dec 2004

Re: [mp2] Ported 3rd-party Modules
Geoffrey Young 02:34 on 09 Dec 2004

Re: [mp2] Ported 3rd-party Modules
Stas Bekman 19:36 on 09 Dec 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52