[cgiapp] CAP::Authentication & Rose::DB

Ron Savage ron at savage.net.au
Thu Sep 11 18:57:41 EDT 2008


Hi Richard

On Thu, 2008-09-11 at 18:39 +0100, Richard Jones wrote:
> Anyone using Rose::DB and CGI:Application::Plugin::Authentication 
> together? There's a plugin for DBIC but I can't work out how to clone 
> that functionality for Rose. At the moment I'm doing:
> 
> $c->dbh_config( My::DB->new() ); # My::DB @ISA = qw(Rose::DB);
> 
> then,
> 
> DRIVER => [ 'DBI',
>      DBH => $c->dbh,
>      etc,
> ],
> 
> 
> It works, but I'm not sure that's the right way to do it, as it doesn't 
> seem to be using the ORM (ie db classes & schema) in the way that the 
> DBIC driver does. Any help/pointers appreciated.

I'm not doing exactly that, but firstly I'd suggest check the Rose::DB
docs for the method retain_dbh(), just in case it's relevant.

-- 
Ron Savage
ron at savage.net.au
http://savage.net.au/index.html




More information about the cgiapp mailing list