RE: [Catalyst] Dispatching based on path and host/domain

2008-04-23 Thread Curtis Fletcher
Write an Action Class. You can put whatever you want in the match() method. In your case, return 0 if grep { $c-req-host =~ /$_/ } @{$self-attributes-{Domain}||[]} I gave this a go (in principle it looks ideal), but the documentation on Catalyst::Action is pretty sparse and only talks

Re: [Catalyst] Dispatching based on path and host/domain

2008-04-23 Thread Matt S Trout
On Wed, Apr 23, 2008 at 12:22:36PM +0100, Curtis Fletcher wrote: Write an Action Class. You can put whatever you want in the match() method. In your case, return 0 if grep { $c-req-host =~ /$_/ } @{$self-attributes-{Domain}||[]} I gave this a go (in principle it looks ideal), but

Re: [Catalyst] Dispatching based on path and host/domain

2008-04-23 Thread Matt S Trout
On Wed, Apr 23, 2008 at 03:25:47PM +0100, Curtis Fletcher wrote: -Original Message- From: Matt S Trout [mailto:[EMAIL PROTECTED] Sent: 23 April 2008 14:34 To: The elegant MVC web framework Subject: Re: [Catalyst] Dispatching based on path and host/domain :Local

RE: [Catalyst] Dispatching based on path and host/domain

2008-04-22 Thread Curtis Fletcher
-Original Message- From: Matt Pitts [mailto:[EMAIL PROTECTED] Sent: 22 April 2008 03:06 To: The elegant MVC web framework Subject: RE: [Catalyst] Dispatching based on path and host/domain You've probably heard this before on the list, but... Ideally, you shouldn't have

Re: [Catalyst] Dispatching based on path and host/domain

2008-04-22 Thread Matt S Trout
On Tue, Apr 22, 2008 at 10:22:55AM +0100, Curtis Fletcher wrote: -Original Message- From: Matt Pitts [mailto:[EMAIL PROTECTED] Sent: 22 April 2008 03:06 To: The elegant MVC web framework Subject: RE: [Catalyst] Dispatching based on path and host/domain You've probably

Re: [Catalyst] Dispatching based on path and host/domain

2008-04-22 Thread Ashley
On Apr 22, 2008, at 9:14 AM, Matt S Trout wrote: The library provides come really common filtering facilities for my apps like active flag and valid_from/valid_to date ranges for records. That smells like there's a couple nice DBIC components in there trying to escape. I've been

RE: [Catalyst] Dispatching based on path and host/domain

2008-04-21 Thread Matt Pitts
-Original Message- From: Curtis Fletcher [mailto:[EMAIL PROTECTED] Sent: Monday, April 21, 2008 7:08 PM To: catalyst@lists.scsys.co.uk Subject: [Catalyst] Dispatching based on path and host/domain Hi again guys. I've got a moderate sized Catalyst App in production now which I'm