[Handel] mp1 database connectivity

Todd W trwww at sbcglobal.net
Wed May 3 22:11:02 CEST 2006


From: "Christopher H. Laco" <claco at chrislaco.com>
>>
>>> Just for giggles, what happens if you leave th offending line in
>>> Handel::DBI, and put this in your FundRaiser.pm:
>>>
>>>
>>> Handel::DBI->connection(
>>>  'dbi:mysql:dbname=handel',
>>>  'handeluser',
>>>  'handelpass'
>>> );
>>
>> Then it works great. In fact, I dont even need to do the second part, as
>> there are already calls to ->connection in the Handel::Cart and
>> Handel::Order subclasses.
>>
>> The problem with that is I'm now modifying the Handel distro and not my
>> subclasses.
>
> Not really. You're adding the above code you your catalyst app class,
> which is all yours. :-)
>
> The Handel::DBI module itself should be left back to stock, and your
> cart/order models don't even need the call to Handel::DBI now...
>

Duh. Was reading the instructions as "...you leave _out_ the offending..."

But yes it still works. I've changed Handel::DBI to the original, added the 
call to connect in FundRaiser.pm, and removed the calls to connect in the 
Handel model subclasses and it works properly.

Thanks!

Todd W.








More information about the Handel mailing list