Re: [Catalyst] Multi-language and REST

2008-05-04 Thread Daniel McBrearty
Haven't been looking in here for a while, just saw this thread. I have a multilingual app at http://www.engoi.com which uses Chained to do this. It works really well, and makes Do Not Repeat Yourself quite easy to achieve. In fact, for many actions, *two* languages are selected - the native and

[Catalyst] Re: RFC: Catalyst::Controller::REST::DBIC

2008-05-04 Thread Aristotle Pagaltzis
* luke saunders [EMAIL PROTECTED] [2008-05-04 02:50]: Also it doesn't distinguish between POST, PUT, DELETE and GET HTTP requests favouring instead entirely separate endpoints, but that's up for discussion. Putting the verb in the URI is RPC, not REST. This is not a matter of discussion.

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-04 Thread luke saunders
On Sun, May 4, 2008 at 10:20 AM, Zbigniew Lukasiak [EMAIL PROTECTED] wrote: On Sun, May 4, 2008 at 2:38 AM, luke saunders [EMAIL PROTECTED] wrote: I have started to write a Catalyst base controller for REST style CRUD via DBIC. I have noticed that a number of other people have been

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-04 Thread J. Shirley
On Sun, May 4, 2008 at 1:52 AM, Zbigniew Lukasiak [EMAIL PROTECTED] wrote: On Sun, May 4, 2008 at 7:05 AM, J. Shirley [EMAIL PROTECTED] wrote: On a side note about REST - REST doesn't mean human readable URLs. It means representative URLs. The bit about cd/id/{CDID}/ smells like

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-04 Thread luke saunders
On Sun, May 4, 2008 at 2:18 PM, Jonathan Rockway [EMAIL PROTECTED] wrote: * On Sat, May 03 2008, luke saunders wrote: __PACKAGE__-config ( action = { setup = { PathPart = 'cd', Chained = '/api/rest/rest_base' } }, class = 'RestTestDB::CD', create_requires =

Re: [Catalyst] Re: RFC: Catalyst::Controller::REST::DBIC

2008-05-04 Thread Matt S Trout
On Sun, May 04, 2008 at 09:10:56AM +0200, Aristotle Pagaltzis wrote: * luke saunders [EMAIL PROTECTED] [2008-05-04 02:50]: Also it doesn't distinguish between POST, PUT, DELETE and GET HTTP requests favouring instead entirely separate endpoints, but that's up for discussion. Putting the

Re: Fw: high school reunion [Catalyst] (no subject)

2008-05-04 Thread Alejandro Imass
Too bad one cannot unsubscribe them from the Internet altogether. On Sun, May 4, 2008 at 5:25 PM, Matt S Trout [EMAIL PROTECTED] wrote: Unsubscribed and banned. Bai. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Director

Re: [Catalyst] Tutorial

2008-05-04 Thread Alejandro Imass
IMHO we should all be thinking of outputting UIML or XUL from TT and push a lot more work to the client, letting your server REST a lot ;-) On Fri, May 2, 2008 at 6:09 PM, Ali M. [EMAIL PROTECTED] wrote: Considere reading the mailist thread about the possibilities for a new book here is the

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-04 Thread J. Shirley
On Sun, May 4, 2008 at 8:52 AM, Zbigniew Lukasiak [EMAIL PROTECTED] wrote: Sorry but I don't understand your point - so maybe first I'll restate mine. If you have primary key in the database that is of type varchar (or char or ...) then 'create' is a legitimage value for that primary

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-04 Thread Christopher Laco
Zbigniew Lukasiak wrote: On Sun, May 4, 2008 at 3:54 PM, J. Shirley [EMAIL PROTECTED] wrote: On Sun, May 4, 2008 at 1:52 AM, Zbigniew Lukasiak [EMAIL PROTECTED] wrote: On Sun, May 4, 2008 at 7:05 AM, J. Shirley [EMAIL PROTECTED] wrote: On a side note about REST - REST doesn't mean

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-04 Thread Steve Atkins
On May 4, 2008, at 9:02 AM, Christopher Laco wrote: My pet peeve is that /foo/primary_key makes computers happy... but not people. /products/23 /products/ABC-1234 The first is the PK for a product record.. The second is the actual sku for a product... just a unique as the pk...but

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-04 Thread Zbigniew Lukasiak
On Sun, May 4, 2008 at 6:06 PM, J. Shirley [EMAIL PROTECTED] wrote: On Sun, May 4, 2008 at 8:52 AM, Zbigniew Lukasiak [EMAIL PROTECTED] wrote: Sorry but I don't understand your point - so maybe first I'll restate mine. If you have primary key in the database that is of type varchar

Re: [Catalyst] Anybody who fancies some LWP poking ...

2008-05-04 Thread Daniel McBrearty
yeah, I started setting up cat on a new system yesterday and hit this :-( The salient line seems to be : HTTP::Message content not bytes at lib/Test/WWW/Mechanize/Catalyst.pm line 88 I will spend an hour or two on it now, as I hate force installing, but am starting almost from scratch and don't

Re: [Catalyst] So, what do we want in the -next- book?

2008-05-04 Thread Marcus Ramberg
On 4. mai. 2008, at 15.39, Matt S Trout wrote: Then again, I originally learned Catalyst by reading the source; took me about 8 hours. The only thing that confused me was the dispatcher, which is why I rewrote most of it later when I became a contrib :) And now it confuses the rest of us

Re: [Catalyst] Anybody who fancies some LWP poking ...

2008-05-04 Thread Daniel McBrearty
OK, I walked through the code and found out roughly what is going on. Hard to say where the real source of the bug is (could be at least two modules) but I have a workaround which I am using (basically just to remove the croak in HTTP::Message, a bit dirty but probably harmless).

[Catalyst] Catalyst, utf8 in form element type text

2008-05-04 Thread Marius Kjeldahl
I'm having a small problem that I hope somebody has a simple solution to. I'm using Catalyst with TT for the view, PostgreSQL and everything set up using utf8 (in perl source use utf8, in postgres using enable_utf8 and in the actual templates containing utf8 encoded interational characers).

Re: [Catalyst] Anybody who fancies some LWP poking ...

2008-05-04 Thread Ashley
There was a recent SoPW on PerlMonks about this. Seems HTTP::Message is doing the right thing. http://perlmonks.org/?node_id=683833 -Ashley On May 4, 2008, at 2:21 PM, Daniel McBrearty wrote: OK, I walked through the code and found out roughly what is going on. Hard to say where the real

Re: [Catalyst] Re: RFC: Catalyst::Controller::REST::DBIC

2008-05-04 Thread Patrick Donelan
No, but how you provide an alternative to full RESTness for clients that don't handle the full range of HTTP verbs -is- a matter for discussion. Which clients are we talking about here? I did a quick google search and could only find an off-hand remark along the lines of in 2006 safari had