Lately I've been using chained actions a lot, since it ends up making
everything look cleaner and more organized.
I tend to structure things in a way that I've got some Catalyst
actions that load some items from the database which are the root of
the chain and then I've got another set of Catal
--- Nilson Santos Figueiredo Junior <[EMAIL PROTECTED]>
wrote:
> Lately I've been using chained actions a lot, since
> it ends up making
> everything look cleaner and more organized.
>
> I tend to structure things in a way that I've got
> some Catalyst
> actions that load some items from the data
On 10/30/06, John Napiorkowski <[EMAIL PROTECTED]> wrote:
I do something very similar to what you are talking
about but I don't issue a find until the endpoint.
You can do search anywhere you do find to get
resultsets. That why you can drill down and keep
adding conditions to the query down the
i do exactly what you just mentioned with $rs->first
On 10/30/06, Nilson Santos Figueiredo Junior <[EMAIL PROTECTED]> wrote:
On 10/30/06, John Napiorkowski <[EMAIL PROTECTED]> wrote:
> I do something very similar to what you are talking
> about but I don't issue a find until the endpoint.
> You
On 30/10/2006, at 22.28, Nilson Santos Figueiredo Junior wrote:
Does everyone use chained actions like this?
http://www.onemogin.com/blog/528-chained-searches-the-beauty-of-
dbixclass-and-catalyst.html
--
Best regards,
David Jack Olrik <[EMAIL PROTECTED]> http://david.olrik.dk
On 11/1/06, David Jack Olrik <[EMAIL PROTECTED]> wrote:
http://www.onemogin.com/blog/528-chained-searches-the-beauty-of-
dbixclass-and-catalyst.html
Nice article. However, by "chained actions" I meant Catalyst's builtin
Chained actions. But I guess it still added some weight to the
previous sug
On 01/11/2006, at 16.26, Nilson Santos Figueiredo Junior wrote:
Nice article. However, by "chained actions" I meant Catalyst's
builtin Chained actions.
You could do the same as in the article, and just stuffing the
resultset in the stash instead.
But I guess it still added some weight t
Nilson Santos Figueiredo Junior wrote:
Lately I've been using chained actions a lot, since it ends up making
everything look cleaner and more organized.
I tend to structure things in a way that I've got some Catalyst
actions that load some items from the database which are the root of
the chai
On 11/8/06, Matt S Trout <[EMAIL PROTECTED]> wrote:
> sub load : Chained('/item') PathPart('') CaptureArgs(1) {
>my ($self, $c, $id) = @_;
my $pre = $c->stash->{prefetches} = {};
$c->stash->{item} = Scalar::Defer::lazy { $c->model('DB')->search(undef,
$pre)->find($id) };
> }
T
Nilson Santos Figueiredo Junior wrote:
On 11/8/06, Matt S Trout <[EMAIL PROTECTED]> wrote:
> sub load : Chained('/item') PathPart('') CaptureArgs(1) {
>my ($self, $c, $id) = @_;
my $pre = $c->stash->{prefetches} = {};
$c->stash->{item} = Scalar::Defer::lazy {
$c->model('DB')->s
On 11/10/06 3:21 AM, Matt S Trout wrote:
> Nilson Santos Figueiredo Junior wrote:
>> Are there any known issues regarding this module? Because if not, I
>> guess I'll probably start stuffing lazy calls inside my chained
>> actions tomorrow. ;-)
>
> Don't believe so, and it's audreycode so *usually
On 11/10/06, Matt S Trout <[EMAIL PROTECTED]> wrote:
Don't believe so, and it's audreycode so *usually* works first time. Plus I
know a few active users in the Cat community and it's getting lots of use in
Jifty, so I'm betting it's pretty solid.
This makes me feel even sorrier for not being ab
On Fri, 2006-11-10 at 12:08 -0200, Nilson Santos Figueiredo Junior
wrote:
> On 11/10/06, Matt S Trout <[EMAIL PROTECTED]> wrote:
> > Don't believe so, and it's audreycode so *usually* works first time. Plus I
> > know a few active users in the Cat community and it's getting lots of use in
> > Jifty
13 matches
Mail list logo