Re: [Catalyst] SchemaLoader?

2006-12-24 Thread Nilson Santos Figueiredo Junior
On 12/25/06, Octavian Rasnita <[EMAIL PROTECTED]> wrote: Can you tell me what version of perl do you have? I use ActivePerl 5.8.8 build 819. Same here. Have you tried updating DBI itself (not DBIx::Class), using the CPAN shell, as I've said before? That usually does away with those unreference

Re: [Catalyst] schema

2006-12-24 Thread Robert 'phaylon' Sedlacek
Octavian Rasnita said: >> Beware though that this probably means you can't access a DBIC resultset >> directly via $c->model('DB::Foo'); > > Ok, but how? Um, how _what_? It would be very helpful if you'd write whole questions, not assuming that I know what is on your mind. We both seem to be non

Re: [Catalyst] schema

2006-12-24 Thread Octavian Rasnita
Beware though that this probably means you can't access a DBIC resultset directly via $c->model('DB::Foo'); Ok, but how? Thanks. Octavian ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable

Re: [Catalyst] schema

2006-12-24 Thread Robert 'phaylon' Sedlacek
Octavian Rasnita said: > Finally I think I will need to use such a config file, although the yaml > format is not very friendly. >From the Catalyst::Plugin::ConfigLoader POD: This module will attempt to load find and load a configuration file of various types. Currently it supports YAML, JS

Re: [Catalyst] schema

2006-12-24 Thread Robert 'phaylon' Sedlacek
Octavian Rasnita said: > From: "Jonas Alves" <[EMAIL PROTECTED]> > >> Or you can just use $c->model() and define the "default_model" >> parameter in the config file. > > That's it! Thank you. Beware though that this probably means you can't access a DBIC resultset directly via $c->model('DB::Foo'

Re: [Catalyst] SchemaLoader?

2006-12-24 Thread Octavian Rasnita
From: "Nilson Santos Figueiredo Junior" <[EMAIL PROTECTED]> These errors are not usually errors per se - just warnings. And everything ends up working correctly. Either way, reinstalling a newer DBI version should do away with some of those. Hi, I've made a mistake. I thought that if I could

Re: [Catalyst] schema

2006-12-24 Thread Octavian Rasnita
From: "Jonas Alves" <[EMAIL PROTECTED]> Or you can just use $c->model() and define the "default_model" parameter in the config file. -- Jonas That's it! Thank you. Teddy ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mail

Re: [Catalyst] schema

2006-12-24 Thread Octavian Rasnita
From: "Robert 'phaylon' Sedlacek" <[EMAIL PROTECTED]> Umm, why don't you just have two config files with different DSNs to your schema? During development, my config has a "dbi:SQLite:..." DSN in it, and the production server uses a postgres one. Finally I think I will need to use such a confi

Re: [Catalyst] SchemaLoader?

2006-12-24 Thread Nilson Santos Figueiredo Junior
On 12/24/06, Octavian Rasnita <[EMAIL PROTECTED]> wrote: Attempt to free unreferenced scalar: SV 0x237e190, Perl interpreter: 0x274324 at D:/usr/site/lib/DBIx/Class/Schema/Loader/Base.pm line 501. These errors are not usually errors per se - just warnings. And everything ends up working correct

Re: [Catalyst] schema

2006-12-24 Thread Jonas Alves
If I write the name of the database in more modules it will be harder to change its name, but now I I think that I could use something like: $c->model($c->config->{db}); and just change the name of the db in the application config. Or you can just use $c->model() and define the "default_model"

Re: [Catalyst] schema

2006-12-24 Thread Robert 'phaylon' Sedlacek
Octavian Rasnita said: > I want to test the application using a certain database, and if all works > right, I want to use it with another one, and I don't want to need > creating another Catalyst application just because I have changed the > database. > > [...] > > and just change the name of the

Re: [Catalyst] schema

2006-12-24 Thread Octavian Rasnita
Yes, sorry, I haven't explained very well, and I think I have found a solution. I have a few databases which are similar. Most of the tables are the same, and in some of them I have more other tables or some tables redefined. I want to test the application using a certain database, and if all w

Re: [Catalyst] schema

2006-12-24 Thread Robert 'phaylon' Sedlacek
Octavian Rasnita said: > I need to access the same database in more controller modules, using the > following line in every subroutine and every module: > > my $schema = $c->model('DB'); > > Is it possible to define it only in one place and make it available in the > entire application? Sorry, I

[Catalyst] schema

2006-12-24 Thread Octavian Rasnita
Hi, I need to access the same database in more controller modules, using the following line in every subroutine and every module: my $schema = $c->model('DB'); Is it possible to define it only in one place and make it available in the entire application? Thanks. Octavian ___

Re: [Catalyst] C::P::Email 0.06 problem

2006-12-24 Thread Bill Moseley
On Sun, Dec 24, 2006 at 04:07:37PM +0100, Sébastien Wagener wrote: > On Fri, 2006-12-22 at 10:55 -0800, Dylan Vanderhoof wrote: > > Downgraded for now, but it'd be nice to see that fixed since my package > > manager keeps wanting to upgrade and I have to talk sternly to it to get > > it to stop. =

Re: [Catalyst] C::P::Email 0.06 problem

2006-12-24 Thread Bill Moseley
On Sun, Dec 24, 2006 at 11:10:48AM +0100, Sébastien Wagener wrote: > On Fri, 2006-12-22 at 10:55 -0800, Dylan Vanderhoof wrote: > > Upgrading to 0.06 broke my code using C::P::Email that was written > > nearly identically to the docs. > I've the same problem, all the e-mail sending facilities are b

Re: [Catalyst] SchemaLoader?

2006-12-24 Thread Octavian Rasnita
From: "Hermida, Leandro" <[EMAIL PROTECTED]> There is no Catalyst::Helper::Model::DBIC::SchemaLoader. Use the DBIC::Schema helper with the create option in order to generate a model from a DBIx::Class::Schema::Loader setup. See the Catalyst::Helper::Model::DBIC::Schema docs for information on

Re: [Catalyst] C::P::Email 0.06 problem

2006-12-24 Thread Sébastien Wagener
On Fri, 2006-12-22 at 10:55 -0800, Dylan Vanderhoof wrote: > Downgraded for now, but it'd be nice to see that fixed since my package > manager keeps wanting to upgrade and I have to talk sternly to it to get > it to stop. =) I just saw that, although 0.07 did not fix the problem, the latest versio

RE: [Catalyst] SchemaLoader?

2006-12-24 Thread Hermida, Leandro
> From: Octavian Rasnita [mailto:[EMAIL PROTECTED] > Sent: Sunday, December 24, 2006 5:32 AM > Subject: [Catalyst] SchemaLoader? > > Hello, > > I have read the POD documentation of the myapp_create.pl and > I have seen: > > myapp_create.pl model SomeDB DBIC::SchemaLoader dbi:SQLite:/tmp/my.db

Re: [Catalyst] C::P::Email 0.06 problem

2006-12-24 Thread Sébastien Wagener
On Fri, 2006-12-22 at 10:55 -0800, Dylan Vanderhoof wrote: > Upgrading to 0.06 broke my code using C::P::Email that was written > nearly identically to the docs. I've the same problem, all the e-mail sending facilities are broken in my app... I would appreciate to know whether I should adapt my cod