Skip Menu |

This queue is for tickets about the CatalystX-ListFramework-Builder CPAN distribution.

Report information
The Basics
Id: 38633
Status: resolved
Priority: 0/
Queue: CatalystX-ListFramework-Builder

People
Owner: OLIVER [...] cpan.org
Requestors: claco [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Config to use any DBIC::Schema based model
I lot of the Cat tutorials mention using a model named Model::DB when teaching the use of Model::DBIC::Schema. It would be nice if LFB you be told to use an existing model as long as it is based on DBIC::Schema. Of course, the easy way for the moment is to just create the LFB::DBIC model that subclasses the other existing model: package BurningPlate::Model::LFB::DBIC; use strict; use base 'BurningPlate::Model::DB'; 1;
Subject: Re: [rt.cpan.org #38633] Config to use any DBIC::Schema based model
Date: Fri, 22 Aug 2008 18:43:39 +0100
To: bug-CatalystX-ListFramework-Builder [...] rt.cpan.org
From: Oliver Gorwits <oliver.gorwits [...] oucs.ox.ac.uk>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Christopher H. Laco via RT wrote: Show quoted text
> I lot of the Cat tutorials mention using a model named Model::DB > when teaching the use of Model::DBIC::Schema. It would be nice if > LFB you be told to use an existing model as long as it is based > on DBIC::Schema.
How about, if there's no config for Model::LFB::DBIC, that the system just hunts around for any other models which inherit from Catalyst::Model::DBIC::Schema, and then load them up? This would be combined somehow with the feature for loading more than one Schema, e.g. http://.../<schema>/<table> - -- Oliver Gorwits, Network and Telecommunications Group, Oxford University Computing Services -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIrvrL2NPq7pwWBt4RAlzVAKDziujodMiCwxpRG36pZkQVSYeJ0QCg8MSt hyA/Dug4pS/kP85Te2MFkh4= =gbrK -----END PGP SIGNATURE-----
CC: claco [...] cpan.org
Subject: Re: [rt.cpan.org #38633] Config to use any DBIC::Schema based model
Date: Fri, 22 Aug 2008 13:48:06 -0400
To: bug-CatalystX-ListFramework-Builder [...] rt.cpan.org
From: "Christopher H. Laco" <claco [...] chrislaco.com>
oliver.gorwits@oucs.ox.ac.uk via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=38633 > > > > Christopher H. Laco via RT wrote:
>> I lot of the Cat tutorials mention using a model named Model::DB >> when teaching the use of Model::DBIC::Schema. It would be nice if >> LFB you be told to use an existing model as long as it is based >> on DBIC::Schema.
> > How about, if there's no config for Model::LFB::DBIC, that the > system just hunts around for any other models which inherit from > Catalyst::Model::DBIC::Schema, and then load them up? > > This would be combined somehow with the feature for loading more > than one Schema, e.g. http://.../<schema>/<table> > >
That works.
On Wed Aug 20 21:57:31 2008, CLACO wrote: Show quoted text
> I lot of the Cat tutorials mention using a model named Model::DB when > teaching the use of Model::DBIC::Schema. It would be nice if LFB you be > told to use an existing model as long as it is based on DBIC::Schema.
Okay as you know the new release v0.33 supports what you describe, I think. Many thanks for your feedback prompting me to do the work :-) If you have any other wishlist items, let me know. cheers, oliver.