[html-formfu] Re: Model::DBIC - dealing with SELECT boxes from lookup tables

Zbigniew Lukasiak zzbbyy at gmail.com
Sun Jan 27 09:16:37 GMT 2008


Now when I think about it - maybe it is good time to refactor the
model stuff.  Maybe something like this in the config:
model:
  class: DBIC
  name: DBSchema            (if not defined than the default would be
used - $c->model() )

--
Zbyszek

On Jan 26, 2008 4:15 PM, Zbigniew Lukasiak <zzbbyy at gmail.com> wrote:
> Hi,
>
> I've just committed a patch for Model::DBIC with tests for dealing
> with SELECT boxes loaded from lookup tables (for belongs_to
> relationship).  It needs to have the schema on the stash - if you just
> put the Catalyst context there it will not work.  I think we agreed
> that schema on stash is better - because it does not tie the Model to
> Catalyst.  I am also volunteering to change the
> Catalyst::Controller::FormFu to put the schema on the stash - and then
> we could delete the old code dealing with Context.
>
> --
> Zbigniew Lukasiak
> http://brudnopis.blogspot.com/
>



-- 
Zbigniew Lukasiak
http://brudnopis.blogspot.com/



More information about the HTML-FormFu mailing list