[Catalyst] Context from CDBI triggers

Marcello m.romani at spinsoft.it
Tue Jun 14 16:05:16 CEST 2005


Sebastian Riedel ha scritto:
> 
> Am 13.06.2005 um 19:39 schrieb Christopher Heschong:
> 
>> Hi, another question to which there is probably a simple answer:
>>
>> Is there any way to access the $c object from within a Class::DBI  
>> trigger
>> (as defined within a Catalyst::Model::CDBI::Plain class)?
>>
>> I'd like to have it do a shift->muser($c->req->user) to set the  current
>> user in a before_update trigger.
> 
> 
> Catalyst::Plugin::Singleton
> 

Wow, thanks!

> -- 
> sebastian
> 
> 
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
> 




More information about the Catalyst mailing list