Re: [Catalyst] Catalyst::Model::DBIC::Schema and ACCEPT_CONTEXT -- current user in model

2010-05-14 Thread Bill Moseley
On Thu, May 13, 2010 at 2:54 PM, Kieren Diment dim...@gmail.com wrote: sub ACCEPT_CONTEXT { my ($self, $c ) = @_; my $new = $self-meta-clone_object($self, arg = $c-stash-{something}); return $new; } Hum, I'm not clear how that works with Catalyst::Model::DBIC::Schema,

[Catalyst] Catalyst::Model::DBIC::Schema and ACCEPT_CONTEXT -- current user in model

2010-05-13 Thread Bill Moseley
I've managed to keep context related items (e.g. current user) out of my DBIC model up until now. Now finding it would be very helpful to be able to call a method on a row object and have access to the current user. So, I'm trying to hunt down an example of how to make a current user available

Re: [Catalyst] Catalyst::Model::DBIC::Schema and ACCEPT_CONTEXT -- current user in model

2010-05-13 Thread Kieren Diment
On 14/05/2010, at 7:37 AM, Bill Moseley wrote: I've managed to keep context related items (e.g. current user) out of my DBIC model up until now. Now finding it would be very helpful to be able to call a method on a row object and have access to the current user. So, I'm trying to hunt