Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users
Model config not being loaded
 

Index | Next | Previous | View Flat


dfx at dfx

Oct 14, 2008, 3:40 AM


Views: 480
Permalink
Model config not being loaded

Hi,

I'm having problems getting the config for a custom DBI based model module
loaded from my config file. The module starts off with

package Timerec::Model::DB;
use strict;
use base 'Catalyst::Model::DBI';
use POSIX;
__PACKAGE__->config(
dsn => "dbi:mysql:timerec",
user => "timerec",
password => "foobar",
);

Now i want to move this into my config file (timerec.conf), in which I put:

<Model DB>
dsn dbi:mysql:timerec
user timerec
password foobar
</Model>

This works fine on my local development machine, but doesn't work on the
deployment server. The software versions are slightly older on the server
(Catalyst 5.7006 on Perl 5.8.8, as opposed to Catalyst 5.7014 on Perl 5.10).
I'm looking for hints as to what could be wrong or how I could work around
this problem...

Thanks in advance!
Richard
--
View this message in context: http://www.nabble.com/Model-config-not-being-loaded-tp19958254p19958254.html
Sent from the Catalyst Web Framework mailing list archive at Nabble.com.


_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Subject User Time
Model config not being loaded dfx at dfx Oct 14, 2008, 3:40 AM
    Re: Model config not being loaded brian.cassidy at gmail Oct 14, 2008, 4:04 AM
    Re: Model config not being loaded dfx at dfx Oct 14, 2008, 4:31 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.