[Catalyst] Configuring Model::DBI::SQL::Library from an yaml file

Alex Pavlovic alex at taskforce-1.com
Sun Mar 11 07:48:19 GMT 2007


Hi,

The issue has been resolved. I've commited the fix into svn repository,
and it will go into PAUSE next.


Thanks.

On Friday 09 March 2007 08:10, john utaka wrote:
> ----- Original Message ----
> From: Robert 'phaylon' Sedlacek <rs at 474.at>
> To: The elegant MVC web framework <catalyst at lists.rawmode.org>
> Sent: Friday, March 9, 2007 4:33:46 PM
> Subject: Re: [Catalyst] Configuring Model::DBI::SQL::Library from an yaml
> file
>
> john utaka wrote:
> >> Is 'MyApp::Model::DBI::SQL::Library' _really_ the name of the model in
> >> your application?
> >
> > Yes it is !
>
> I think the problem is that the module author has overridden new() and
> is not passing all possible arguments to the original:
>
>    my ( $self, $c ) = @_;
>    $self = $self->NEXT::new($c);
>
> If that would read
>
>    my ( $self, $c, @args ) = @_;
>    $self = $self->NEXT::new($c, @args);
>
> or something like
>
>    my $class = shift;
>    my $self  = $class->NEXT::new(@_);
>
> (you get the idea) the configuration passed by the COMPONENT() method
> would get passed on. Maybe you could report (or forward this mail) to
> the author of the module for consideration? I don't know if he's on the
> list.
>
> Class::C3 is also favored over NEXT these days, but that has nothing to
> do with this issue.
>
>
>
> You're absolutely right. I'll forward this mail to the author.
> Thank a lot ! :)
>
>
>
>
>
>
>
>
>
>
> ___________________________________________________________________________
>_________ Need Mail bonding?
> Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
> http://answers.yahoo.com/dir/?link=list&sid=396546091

-- 
Alex Pavlovic - CTO
TF-1 Inc. ( Custom development, consultancy and training )
http://taskforce-1.com



More information about the Catalyst mailing list