[Catalyst] Handling configuration outside the Catalyst application

2009-08-27 Thread Daniel Austin
Hello How are you handling configuration for applications or code that run outside of Catalyst? For example, in my model tests, I have code like this: use MyCompany::CatApp; my $app = MyCompany::CatApp->new(); my $model = $app->model('DB::Model')->new({}); ok( $model->insert );

Re: [Catalyst] Handling configuration outside the Catalyst application

2009-08-27 Thread Eden Cardim
On Thu, Aug 27, 2009 at 11:10 PM, Daniel Austin wrote: > Hello > > How are you handling configuration for applications or code that run > outside of Catalyst? > > For example, in my model tests, I have code like this: > >    use MyCompany::CatApp; >    my $app = MyCompany::CatApp->new(); >    my $m

Re: [Catalyst] Handling configuration outside the Catalyst application

2009-08-27 Thread Bill Moseley
On Thu, Aug 27, 2009 at 7:10 PM, Daniel Austin wrote: > > Hello > > How are you handling configuration for applications or code that run > outside of Catalyst? > > For example, in my model tests, I have code like this: > >    use MyCompany::CatApp; >    my $app = MyCompany::CatApp->new(); >    my

Re: [Catalyst] Handling configuration outside the Catalyst application

2009-08-28 Thread Matthias Dietrich
Hi, Am 28.08.2009 um 04:58 schrieb Bill Moseley: But, now I'm thinking about making all access go through Catalyst. That is, a cron job would log in via the API and then use and API method to do its work. Wouldn't need to be a web request, of course. Then I've got one access layer to the appli

Re: [Catalyst] Handling configuration outside the Catalyst application

2009-08-28 Thread Sebastian Willert
On Fri, 2009-08-28 at 12:10 +1000, Daniel Austin wrote: > Hello > > How are you handling configuration for applications or code that run > outside of Catalyst? > > [snip] If you are just trying to emulate Catalyst's config loading mechanism to connect the schema yourself then have a look at Confi

Re: [Catalyst] Handling configuration outside the Catalyst application

2009-08-29 Thread Daniel Austin
2009/8/28 Eden Cardim : > > [...] > Catalyst::Model::DBIC::Schema is just an adaptor for loading a > DBIC::Schema inside a catalyst application. You can "use > MyApp::Schema::DB" anywhere outside your catalyst application, [...] Initially I was doing exactly that for my model tests. But then I fou