Re: [Catalyst] Why does $c->stats require -Debug flag?

2008-04-25 Thread Jon Schutz
On Fri, 2008-04-25 at 15:53 +0100, Matt S Trout wrote: > > There's no written standard currently; I'd love to see somebody take a > crack at writing one but I'm not sure what would need to go in it. > I've attached a draft based on some of our company procedures to show the sorts of things that

Re: [Catalyst] Re: Multi-language and REST

2008-04-25 Thread Dave Rolsky
On Fri, 25 Apr 2008, Aristotle Pagaltzis wrote: * Ashley <[EMAIL PROTECTED]> [2008-04-25 22:20]: I like PUT and DELETE too but I'm not going to abandon POST as their stand-in (or fall-back) any time soon. http://search.cpan.org/dist/Catalyst-Request-REST-ForBrowsers/ autarch++ Thanks. Thi

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread J. Shirley
On Fri, Apr 25, 2008 at 1:45 PM, Christopher H. Laco <[EMAIL PROTECTED]> wrote: > > If it's just for your app.. put it in MyApp.pm... > If you want to do something for the rest of us...personally... I'd suggest > making this part of the I18N plugin... since it's really just another way to > set t

[Catalyst] Re: Multi-language and REST

2008-04-25 Thread Aristotle Pagaltzis
* Ashley <[EMAIL PROTECTED]> [2008-04-25 22:20]: > I like PUT and DELETE too but I'm not going to abandon POST as > their stand-in (or fall-back) any time soon. http://search.cpan.org/dist/Catalyst-Request-REST-ForBrowsers/ autarch++ Regards, -- Aristotle Pagaltzis //

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Christopher H. Laco
Ian Docherty wrote: Christopher H. Laco wrote: Ian Docherty wrote: Christopher H. Laco wrote: Ian Docherty wrote: I have been pondering how to take an existing Catalyst application and make it multi-lingual. I would prefer to use a RESTful method, so this would translate /foo/bar to /en/fo

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Ian Docherty
Christopher H. Laco wrote: Ian Docherty wrote: Christopher H. Laco wrote: Ian Docherty wrote: I have been pondering how to take an existing Catalyst application and make it multi-lingual. I would prefer to use a RESTful method, so this would translate /foo/bar to /en/foo/bar or /fr/foo/bar

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Ashley
On Apr 25, 2008, at 10:28 AM, Christopher H. Laco wrote: If changing Accept-Language is too much, (or people want to view a language other than their native), then look at language= in the query params first..if it's empty...honor Accept-Language... rather than forcing // at the front of all

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Christopher H. Laco
Dave Rolsky wrote: On Fri, 25 Apr 2008, Ashley wrote: I agree that it's content, not formatting. If CSS/client-side-JS can (in a practical fashion) change it, it's formatting, otherwise, it's content. I should have used the word representation. With REST, you'd have the same URI for one res

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Dave Rolsky
On Fri, 25 Apr 2008, Ashley wrote: I agree that it's content, not formatting. If CSS/client-side-JS can (in a practical fashion) change it, it's formatting, otherwise, it's content. I should have used the word representation. With REST, you'd have the same URI for one resource, but you might

Re: [Catalyst] Re: Multi-language and REST

2008-04-25 Thread Ashley
On Apr 25, 2008, at 9:03 AM, Ian Docherty wrote: I use Chained exclusively and don’t use the Perl package namespace as a mapping to the URI namespace at all, only for logically grouping related functionality. Usually the two still correspond to some extent of course, but I don’t feel any nee

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Ashley
On Apr 25, 2008, at 8:55 AM, Ian Docherty wrote: Dave Rolsky wrote: On Fri, 25 Apr 2008, Ian Docherty wrote: http://www.w3.org/Protocols/HTTP/HTRQ_Headers.html#z12 Yes, I have done this previously, it is elegant, but not RESTful and does not make it easy for users to change their settings

Re: [Catalyst] Re: Multi-language and REST

2008-04-25 Thread Ian Docherty
Aristotle Pagaltzis wrote: * Ian Docherty <[EMAIL PROTECTED]> [2008-04-25 16:35]: I have considered chained, and would be prepared to re-write the existing controllers. A bigger decision would be renaming the controllers or moving them. e.g. existing MyApp::Controller::Foo::Bar maps to URI /

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Ian Docherty
Dave Rolsky wrote: On Fri, 25 Apr 2008, Ian Docherty wrote: http://www.w3.org/Protocols/HTTP/HTRQ_Headers.html#z12 Yes, I have done this previously, it is elegant, but not RESTful and does not make it easy for users to change their settings on a site-by-site basis dynamically, as you could i

[Catalyst] Re: Why does $c->stats require -Debug flag?

2008-04-25 Thread Aristotle Pagaltzis
* Matt S Trout <[EMAIL PROTECTED]> [2008-04-25 17:05]: > For example, not breaking people's code in a point release > wherever possible even if their code was technically the wrong > thing to do is just something you -do- if you're writing > production quality libraries, to me. It never occurred to

[Catalyst] Re: Multi-language and REST

2008-04-25 Thread Aristotle Pagaltzis
* Ian Docherty <[EMAIL PROTECTED]> [2008-04-25 16:35]: > I have considered chained, and would be prepared to re-write > the existing controllers. A bigger decision would be renaming > the controllers or moving them. > > e.g. existing MyApp::Controller::Foo::Bar maps to URI /foo/bar > > To match aga

[Catalyst] Re: Multi-language and REST

2008-04-25 Thread Aristotle Pagaltzis
* Ian Docherty <[EMAIL PROTECTED]> [2008-04-25 16:25]: > Knut-Olav Hoven wrote: >> The elegang solution is to make use of the request header >> Accept-Language, but not many users know how to change this >> setting in their browsers. >> >> http://www.w3.org/Protocols/HTTP/HTRQ_Headers.html#z12 >

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Dave Rolsky
On Fri, 25 Apr 2008, Ian Docherty wrote: http://www.w3.org/Protocols/HTTP/HTRQ_Headers.html#z12 Yes, I have done this previously, it is elegant, but not RESTful and does not make it easy for users to change their settings on a site-by-site basis dynamically, as you could if you provided a lan

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

2008-04-25 Thread Matt S Trout
On Wed, Apr 23, 2008 at 10:56:07PM +0200, Aristotle Pagaltzis wrote: > * Matt S Trout <[EMAIL PROTECTED]> [2008-04-23 21:40]: > > On Wed, Apr 23, 2008 at 03:25:47PM +0100, Curtis Fletcher wrote: > > > Digging around, is it a sane thing to have: > > > > > > __PACKAGE__->_action_class('Catalyst::Act

Re: [Catalyst] Why does $c->stats require -Debug flag?

2008-04-25 Thread Matt S Trout
On Thu, Apr 24, 2008 at 06:19:48PM +0930, Jon Schutz wrote: > > I'm aware you object on principle; however I've stated very clearly why I > > believe your objections are incorrect and since you're contributing to > > Catalyst I'd ask that you follow the current Catalyst standards for > > backwards

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Christopher H. Laco
Ian Docherty wrote: Christopher H. Laco wrote: Ian Docherty wrote: I have been pondering how to take an existing Catalyst application and make it multi-lingual. I would prefer to use a RESTful method, so this would translate /foo/bar to /en/foo/bar or /fr/foo/bar (for English and French res

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Ian Docherty
Christopher H. Laco wrote: Ian Docherty wrote: I have been pondering how to take an existing Catalyst application and make it multi-lingual. I would prefer to use a RESTful method, so this would translate /foo/bar to /en/foo/bar or /fr/foo/bar (for English and French respectively). The pro

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Bill Moseley
On Fri, Apr 25, 2008 at 01:44:38PM +0100, Ian Docherty wrote: > I have been pondering how to take an existing Catalyst application and > make it multi-lingual. > > I would prefer to use a RESTful method, so this would translate /foo/bar > to /en/foo/bar or /fr/foo/bar (for English and French res

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Ian Docherty
Knut-Olav Hoven wrote: On Friday 25 April 2008 14:44:38 Ian Docherty wrote: I have been pondering how to take an existing Catalyst application and make it multi-lingual. I would prefer to use a RESTful method, so this would translate /foo/bar to /en/foo/bar or /fr/foo/bar (for English and Fr

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Christopher H. Laco
Ian Docherty wrote: I have been pondering how to take an existing Catalyst application and make it multi-lingual. I would prefer to use a RESTful method, so this would translate /foo/bar to /en/foo/bar or /fr/foo/bar (for English and French respectively). The problem as I see it is how to do

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Knut-Olav Hoven
On Friday 25 April 2008 14:44:38 Ian Docherty wrote: > I have been pondering how to take an existing Catalyst application and > make it multi-lingual. > > I would prefer to use a RESTful method, so this would translate /foo/bar > to /en/foo/bar or /fr/foo/bar (for English and French respectively).

[Catalyst] Multi-language and REST

2008-04-25 Thread Ian Docherty
I have been pondering how to take an existing Catalyst application and make it multi-lingual. I would prefer to use a RESTful method, so this would translate /foo/bar to /en/foo/bar or /fr/foo/bar (for English and French respectively). The problem as I see it is how to do this. I don't want t

Re: [Catalyst] Re: Why does $c->stats require -Debug flag?

2008-04-25 Thread Zbigniew Lukasiak
On Fri, Apr 25, 2008 at 1:04 AM, Aristotle Pagaltzis <[EMAIL PROTECTED]> wrote: > Hi Wade.Stuart, > > * [EMAIL PROTECTED] <[EMAIL PROTECTED]> [2008-04-25 00:30]: > > > > Aristotle Pagaltzis <[EMAIL PROTECTED]> wrote on 04/24/2008 12:32:12 PM: > >> * Jonathan Rockway <[EMAIL PROTECTED]> [2008-04-2