[Catalyst] C::P::Authorization::Roles methods: $user parameter?

2009-12-07 Thread Jens Schwarz
Hi, i have looked into C::P::Authorization::Roles [1] and have a question regarding the (optional) parameter $user of its methods: Say I am logged in as user 'foo' and want to check whether user 'bar' has the role 'baz'. The C::P::A::R help talks about the method check_user_roles [ $user ],

[Catalyst] Access to DBIx schema from outside Catalyst

2009-12-07 Thread Dermot
Hi, I haven't finished reading the book yet so I hope this question won't be answered there. If I have a Class outside my Cat App, I can have access to that via C::Model::Adapator. Is there a method for giving that external Class access to Catalyst features, particularly the DBix schema and

Re: [Catalyst] Q: DBIC transaction around Catalyst action chain

2009-12-07 Thread Octavian Râsnita
From: Bernhard Graf cataly...@augensalat.de Hi, having all database access of a Cat action in a database transaction is easy: Wrap everything in $c-model('DB')-schema-txn_do(...) or use Catalyst::Action::DBIC::Transaction. But what to do with action chains? Read about txn_begin and

Re: [Catalyst] Q: DBIC transaction around Catalyst action chain

2009-12-07 Thread Bernhard Graf
Octavian Râsnita schrieb: having all database access of a Cat action in a database transaction is easy: Wrap everything in $c-model('DB')-schema-txn_do(...) or use Catalyst::Action::DBIC::Transaction. But what to do with action chains? Read about txn_begin and txn_commit at:

Re: [Catalyst] Access to DBIx schema from outside Catalyst

2009-12-07 Thread Eden Cardim
Dermot == Dermot paik...@googlemail.com writes: Dermot Hi, I haven't finished reading the book yet so I hope this Dermot question won't be answered there. Dermot If I have a Class outside my Cat App, I can have access to Dermot that via C::Model::Adapator. Is there a method for

Re: [Catalyst] Partial page cache plugin

2009-12-07 Thread Tomas Doran
On 7 Dec 2009, at 21:31, Octavian Râsnita wrote: But by the way, I've seen that there are no CHI plugins for Catalyst even though CHI seems to be an improved version of the Cache module. Of _which_ cache module? CHI is a cache framework which has the same interface as other Cache::

Re: [Catalyst] Partial page cache plugin

2009-12-07 Thread Peter Karman
Tomas Doran wrote on 12/07/2009 03:48 PM: I don't see why there needs to be anything CHI specific? (But I'd welcome doc patches / wiki / advent articles showing how to use CHI). strangely, I'm experiencing deja vu all over again...

Re: [Catalyst] Partial page cache plugin

2009-12-07 Thread Tomas Doran
On 7 Dec 2009, at 22:10, Peter Karman wrote: Tomas Doran wrote on 12/07/2009 03:48 PM: I don't see why there needs to be anything CHI specific? (But I'd welcome doc patches / wiki / advent articles showing how to use CHI). strangely, I'm experiencing deja vu all over again...