[Catalyst] Advice needed: Action for authentication check

2006-08-03 Thread Matthieu Codron
Hi everyone, I have been playing with some recent features of Catalyst like Actions and forward chains. I was wondering if an action could be used to provide encaspulated authentication check like in: sub dostuff : ActionClass('Secured') { ... } The Secured action would check if a user is

Re: [Catalyst] Advice needed: Action for authentication check

2006-08-03 Thread Jonas
Just try InstantCRUD from trunk. It does exactly that. :) --Jonas On 03/08/06, Matthieu Codron [EMAIL PROTECTED] wrote: Hi everyone, I have been playing with some recent features of Catalyst like Actions and forward chains. I was wondering if an action could be used to provide encaspulated

Re: [Catalyst] Advice needed: Action for authentication check

2006-08-03 Thread Yuval Kogman
On Thu, Aug 03, 2006 at 09:56:48 +0200, Matthieu Codron wrote: The Secured action would check if a user is logged in and would take appropriate actions if not (redirect to a login page or an acces denied page) Did you see the ACL plugin?

Re: [Catalyst] apache config question

2006-08-03 Thread Jonathan Rockway
I'm not 100% sure about this since I'm using FastCGI now (and don't have this problem, for what ever reason), but my recommendation would be to do a client side redirect via mod_rewrite or a regular redirect. RewriteRule ^/dev /dev/ [R] or Redirect /dev http://yoursite.com/dev/ If you're just

Re: [Catalyst] apache config question

2006-08-03 Thread leonard . a . jaffe
[EMAIL PROTECTED] wrote: What is the magic config to make /dev equivalent to /dev/? Jonathan Rockway [EMAIL PROTECTED] :: 08/03/2006 11:18 AM RewriteRule ^/dev /dev/ [R] Doh! mod_rewrite...I should have known. I had to make one minor mod: RewriteRule ^/dev$ /dev/ [R] Thanks.

Re: [Catalyst] [Announce] Planet Catalyst

2006-08-03 Thread Christopher H. Laco
articles related to Catalyst and friends which means it filters articles on catalyst, dbic, dbix(::)?class or html(::)?widget (case insensitive). Bah. No Handel? Pt. Catalyst is dead to me. Dead I say. An ex-parrot. :-) -=Chris signature.asc Description: OpenPGP digital signature

Re: [Catalyst] [Announce] Planet Catalyst

2006-08-03 Thread Christopher H. Laco
John Wang wrote: On 8/3/06, Christopher H. Laco [EMAIL PROTECTED] wrote: articles related to Catalyst and friends which means it filters articles on catalyst, dbic, dbix(::)?class or html(::)?widget (case insensitive). Bah. No Handel? Pt. There would be if I could find the Handel

Re: [Catalyst] Advice needed: Action for authentication check

2006-08-03 Thread Matthieu Codron
Hi, Yuval Kogman a écrit : Did you see the ACL plugin? http://search.cpan.org/perldoc?Catalyst::Plugin::Authorization::ACL Yes, I had a quick look. Seems to do the trick (and much more), although I liked more the idea of attaching access control to actions via

Re: [Catalyst] [Announce] Planet Catalyst

2006-08-03 Thread John Wang
On 8/3/06, Carl Franks [EMAIL PROTECTED] wrote: html::widget is also often written as html-widget or H::W. Likewise, dbix::class could also be written dbix-class. Thanks, using a - instead of :: is now covered as is H::W. DBIC was already covered. -- John Wanghttp://www.dev411.com/blog/

Re: [Catalyst] connection info and Catalyst::Model::DBIC::Schema

2006-08-03 Thread Alan Humphrey
Alan Humphrey wrote: I feel that I'm missing something obvious, but the penny hasn't dropped. Hope you all can help. Goal: use a DBIx::Class schema defined outside the Catalyst app name space. Using: Catalyst::Model::DBIC::Schema Problem: I have to define the connection information in