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

2008-05-15 Thread Zbigniew Lukasiak
Hi there, This is a frequently recurring conversation - so I created a wiki page to gather all the points where we reached some consensus: http://catwiki.toeat.com/crud. For the start I just dumped my opinions. I tried to be not controversial - but it is a wiki - if you don't agree then you can

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

2008-05-15 Thread Thomas Klausner
Hi! On Sun, May 11, 2008 at 07:10:27PM +0100, Leon Brocard wrote: 2008/5/10 Daniel McBrearty [EMAIL PROTECTED]: I'd like Leon's opinion on this. Forwarding to him again. I understand many bits of it but have given up trying to get it working. I would love a patch which passes tests on

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

2008-05-15 Thread Zbigniew Lukasiak
On Thu, May 15, 2008 at 7:31 PM, Mark Trostler [EMAIL PROTECTED] wrote: You don't need 'create' 'update' 'delete' parts of your URL - those should be denoted by the request type - POST, PUT, or DELETE right? Yes - you are right about REST, but what something more than that. We want to have

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

2008-05-15 Thread Aristotle Pagaltzis
* Zbigniew Lukasiak [EMAIL PROTECTED] [2008-05-15 21:25]: On Thu, May 15, 2008 at 7:31 PM, Mark Trostler [EMAIL PROTECTED] wrote: Similarly you don't need 'id' in the url - so POST to /api/rest/cd will create a cd. A PUT to /api/rest/cd/5 will update that CD - a DELETE to /api/rest/cd/5

Re: [Catalyst] uri_for() doesn't encode to utf8 first argument

2008-05-15 Thread J. Shirley
On Thu, May 15, 2008 at 11:50 PM, Dmitriy S. Sinyavskiy [EMAIL PROTECTED] wrote: So what about my patch and test? Is it right or someone can correct it? The silence is here for a week or more ( Jonathan Rockway asked you to regenerate without whitespace changes. Just waiting on that

Re: [Catalyst] Output as XML

2008-05-15 Thread J. Shirley
On Thu, May 15, 2008 at 10:49 PM, Mitch Jackson [EMAIL PROTECTED] wrote: Russell, Thanks for the suggestion. I looked at that, however it basically does what I'm already doing. The bottleneck wasn't so much TT, but the creation of thousands of DBIC objects and sticking them into an array.

Re: [Catalyst] Output as XML

2008-05-15 Thread Mitch Jackson
J, My solution was better suited for the DBIx::Class list I suppose, but I posed the question here to see if there was already some sort of Catalyst solution I had overlooked... a view for example. I took a look at that part of the cookbook before, but it seems to only apply if you're pulling

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

2008-05-15 Thread Zbigniew Lukasiak
On Thu, May 15, 2008 at 11:11 PM, Aristotle Pagaltzis [EMAIL PROTECTED] wrote: * Zbigniew Lukasiak [EMAIL PROTECTED] [2008-05-15 21:25]: On Thu, May 15, 2008 at 7:31 PM, Mark Trostler [EMAIL PROTECTED] wrote: Similarly you don't need 'id' in the url - so POST to /api/rest/cd will create a