Re: [Catalyst] Two Strange Catalyst/Apache Issues

2007-05-25 Thread Carl Johnstone
Perl use lib qw(/.../bylines); # This block only matters when the app is outside the default Perl areas /Perl Is that really what you have? ... probably is right, and you are missing the lib of the end of the path? We use: Perl use lib qw(/path/to/CatProject/lib/); /Perl Carl

[Catalyst] Catalyst and transactions

2007-05-25 Thread Jason Konrad
I got some help from the DBIx list today which helped me get the txn_do() method working for my schema which is created with the loader Schema package kRadDB; use strict; use base qw/DBIx::Class::Schema::Loader/; __PACKAGE__-loader_options( relationships = 1, ); The solution

Re: [Catalyst] Catalyst and transactions

2007-05-25 Thread Evaldas Imbrasas
Try this: $c-model('kRadDB')-result_source-schema On 5/25/07, Jason Konrad [EMAIL PROTECTED] wrote: This does accomplish what I was trying to do but aren't there some connections around that I could use rather than manually connecting each time I need to do this transaction?

Re: [Catalyst] Catalyst and transactions

2007-05-25 Thread Eden Cardim
On 5/25/07, Eden Cardim [EMAIL PROTECTED] wrote: You need to ask for the model name that inherits from Catalyst::Model::DBIC::Schema, the one that has __PACKAGE__-config( schema_class = 'kRadDB', config_info = '...' ) in it, not the schema class. oops, s/config/connect/ -- Eden Cardim

Re: [Catalyst] Catalyst and transactions

2007-05-25 Thread Jason Konrad
Thanks for the help. With your suggestion I managed to track down what was going on. The error I was seeing was coming from a unit test that I wrote using a mocked application (that someone else wrote). It turns out that the $c-model method was being mocked and it would only return result

[Catalyst] Duplicate session ids

2007-05-25 Thread Bill Moseley
I fired up an older application today and couldn't log in. I've recently updated this machine, so not sure that's related. Running Cat 5.7007 with current plugins: 'Session', 'Session::Store::FastMmap', 'Session::State::Cookie', If I have this in my base class: sub