Re: [Catalyst] Simple literal Model

2011-03-01 Thread Zbigniew Lukasiak
On Sat, Feb 26, 2011 at 6:22 AM, John M. Dlugosz wrote: > On 2/25/2011 9:30 AM, Ashley Pond V apv-at-sedition.com |Catalyst/Allow > to home| wrote: > >> What t0m suggested is perfectly fine but if you want to mimic the DBIC >> API with a different engine, this example does that (superficially and

Re: [Catalyst] Simple literal Model

2011-02-26 Thread Ashley Pond V
On Fri, Feb 25, 2011 at 9:22 PM, John M. Dlugosz wrote: >  On 2/25/2011 9:30 AM, Ashley Pond V apv-at-sedition.com |Catalyst/Allow to > home| wrote: >> >> What t0m suggested is perfectly fine but if you want to mimic the DBIC >> API with a different engine, this example does that (superficially an

Re: [Catalyst] Simple literal Model

2011-02-26 Thread Octavian Rasnita
From: "John M. Dlugosz" > On 2/25/2011 9:30 AM, Ashley Pond V apv-at-sedition.com |Catalyst/Allow to > home| wrote: >> What t0m suggested is perfectly fine but if you want to mimic the DBIC >> API with a different engine, this example does that (superficially and >> as a tutorial only): http://s

Re: [Catalyst] Simple literal Model

2011-02-25 Thread John M. Dlugosz
On 2/25/2011 9:30 AM, Ashley Pond V apv-at-sedition.com |Catalyst/Allow to home| wrote: What t0m suggested is perfectly fine but if you want to mimic the DBIC API with a different engine, this example does that (superficially and as a tutorial only): http://sedition.com/a/2739 Log file model–Ap

Re: [Catalyst] Simple literal Model

2011-02-25 Thread Ashley Pond V
On Fri, Feb 25, 2011 at 2:27 AM, John M. Dlugosz wrote: >  On 2/25/2011 4:06 AM, Tomas Doran bobtfish-at-bobtfish.net |Catalyst/Allow > to home| wrote: >> >> __PACKAGE__->meta->make_immutable; >> 1; >> >> And you then call $c->model('Foo')->data; >> >> The implementation of the 'data' method could

Re: [Catalyst] Simple literal Model

2011-02-25 Thread John M. Dlugosz
On 2/25/2011 4:06 AM, Tomas Doran bobtfish-at-bobtfish.net |Catalyst/Allow to home| wrote: __PACKAGE__->meta->make_immutable; 1; And you then call $c->model('Foo')->data; The implementation of the 'data' method could then later be replaced by an attribute (i.e. has data => ( is => 'ro', isa

Re: [Catalyst] Simple literal Model

2011-02-25 Thread Tomas Doran
On 25 Feb 2011, at 01:56, John M. Dlugosz wrote: I'm planning several web pages that will be the same except for the actual content. Rather than code the details in the TT template or prepare a list literally in the Controller, I'm thinking that this ought to go into a Model. But, it can

[Catalyst] Simple literal Model

2011-02-24 Thread John M. Dlugosz
I'm planning several web pages that will be the same except for the actual content. Rather than code the details in the TT template or prepare a list literally in the Controller, I'm thinking that this ought to go into a Model. But, it can just be a Perl declaration. Something like: my @dat