Re: [Catalyst] Re: How to print/display some data in an end action

2008-05-05 Thread Emmanuel Quevillon
Aristotle Pagaltzis wrote: Hi Emmanuel, * Emmanuel Quevillon [EMAIL PROTECTED] [2008-04-30 16:30]: Maybe I can clarify the situation. OK; but all of that was already reasonably obvious. The issue is, you are doing something to forward to ::View::TT automatically at the end of a request.

Re: [Catalyst] Re: How to print/display some data in an end action

2008-05-05 Thread Emmanuel Quevillon
Aristotle Pagaltzis wrote: * Andreas Marienborg [EMAIL PROTECTED] [2008-05-01 10:50]: No point in forwarding to end, since that is done automaticly. In which case it would run twice, actually. But maybe he has a more specific `end` action and so forwarding to ::C::Root::end is actually a

Re: [Catalyst] Re: How to print/display some data in an end action

2008-05-05 Thread Kieren Diment
On 5 May 2008, at 16:46, Emmanuel Quevillon wrote: Aristotle Pagaltzis wrote: Hi Emmanuel, * Emmanuel Quevillon [EMAIL PROTECTED] [2008-04-30 16:30]: Maybe I can clarify the situation. OK; but all of that was already reasonably obvious. The issue is, you are doing something to forward to

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

2008-05-05 Thread luke saunders
On Mon, May 5, 2008 at 1:20 AM, Patrick Donelan [EMAIL PROTECTED] wrote: 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

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

2008-05-05 Thread Aristotle Pagaltzis
* Matt S Trout [EMAIL PROTECTED] [2008-05-04 16:25]: 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

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

2008-05-05 Thread Matt S Trout
On Sun, May 04, 2008 at 07:28:46PM +0200, Marcus Ramberg wrote: 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

Re: [Catalyst] modperl 1.3 wierdness

2008-05-05 Thread Matt S Trout
On Sun, May 04, 2008 at 11:19:24PM +1000, Toby Corkindale wrote: On Sat, May 03, 2008 at 11:22:49PM +0100, Matt S Trout wrote: On Mon, Apr 28, 2008 at 11:30:53AM +1000, Toby Corkindale wrote: Unfortunately due to somewhat unusual app deployment tactics here, apps get installed

Re: [Catalyst] Re: How to print/display some data in an end action

2008-05-05 Thread Matt S Trout
On Wed, Apr 30, 2008 at 04:16:00PM +0200, Emmanuel Quevillon wrote: Aristotle Pagaltzis wrote: * Emmanuel Quevillon [EMAIL PROTECTED] [2008-04-30 15:05]: Catalyst always try to wrap the action result 'display' into a template. No, it doesn’t. If that happens in your app, then you have set

Re: [Catalyst] Tutorial

2008-05-05 Thread Matt S Trout
On Thu, May 01, 2008 at 11:17:33AM -0700, gaurav001 wrote: Hello gurus, I am newb for Catalyst so forgive me if I ask stupid questions. I have Rockway's book. I followed it. All went good so far (ignore FormBuilder stuff ). Now i want to customize application. Lets say FormBuilder.render

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

2008-05-05 Thread Matt S Trout
On Mon, May 05, 2008 at 11:19:34AM +1930, Alejandro Imass wrote: Too bad one cannot unsubscribe them from the Internet altogether. Although breaking into their DSL router, reflashing the firmware with all zeros and then rebooting it is probably close enough. Not that I'd advocate such a thing,

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

2008-05-05 Thread Matt S Trout
On Sun, May 04, 2008 at 09:06:30AM -0700, J. Shirley 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 (or char

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

2008-05-05 Thread Matt S Trout
On Mon, May 05, 2008 at 10:46:56AM +0100, luke saunders wrote: On Mon, May 5, 2008 at 1:20 AM, Patrick Donelan [EMAIL PROTECTED] wrote: 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.

Re: [Catalyst] How to print/display some data in an end action

2008-05-05 Thread Emmanuel Quevillon
Mitch Jackson wrote: Emmanuel, Your object is going to request the svg file from your display method, just like a web browser would. When catalyst delivers the file, it needs to look like an SVG to the browser. Some browsers look for different things.

Re: [Catalyst] Re: Catalyst, utf8 in form element type text - Solved

2008-05-05 Thread Marius Kjeldahl
Problem solved. In my View class, like: package MyApp::View::TT; use strict; use warnings; use base 'Catalyst::View::TT'; replace the last line with: use base 'Catalyst::View::TT::ForceUTF8'; and everything works fine. I guess there was some confusion between Template Toolkit and non-utf8

[Catalyst] Let's port Twitter to Perl

2008-05-05 Thread John Napiorkowski
Hey, I heard Twitter was abandoning RoR. It would be the coup of the year if we could bring them to Perl, but from what I understand it's not even on the consideration list. So why not give them a little help? We should have a hackathon to port Twitter to Catalyst using all our most

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

2008-05-05 Thread J. Shirley
On Mon, May 5, 2008 at 4:31 AM, Matt S Trout [EMAIL PROTECTED] wrote: On Sun, May 04, 2008 at 09:06:30AM -0700, J. Shirley 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

Re: [Catalyst] Let's port Twitter to Perl

2008-05-05 Thread Chris Czub
It'd be a good way to get Catalyst out there. I've experimented with different frameworks(RoR and Django) and Catalyst is the one I always wind up coming back to... probably mostly because of my familiarity with perl, but I love the way of thinking that Catalyst pushes you towards. The MVC in

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

2008-05-05 Thread J. Shirley
On Mon, May 5, 2008 at 8:18 AM, Andrew Rodland [EMAIL PROTECTED] wrote: On Monday 05 May 2008 09:50:08 am J. Shirley wrote: On Mon, May 5, 2008 at 4:31 AM, Matt S Trout [EMAIL PROTECTED] wrote: On Sun, May 04, 2008 at 09:06:30AM -0700, J. Shirley wrote: I fail to see how whether the

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

2008-05-05 Thread Zbigniew Lukasiak
On Mon, May 5, 2008 at 6:19 PM, J. Shirley [EMAIL PROTECTED] wrote: On Mon, May 5, 2008 at 8:18 AM, Andrew Rodland [EMAIL PROTECTED] wrote: On Monday 05 May 2008 09:50:08 am J. Shirley wrote: On Mon, May 5, 2008 at 4:31 AM, Matt S Trout [EMAIL PROTECTED] wrote: On Sun, May 04, 2008

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

2008-05-05 Thread luke saunders
On Mon, May 5, 2008 at 5:19 PM, J. Shirley [EMAIL PROTECTED] wrote: On Mon, May 5, 2008 at 8:18 AM, Andrew Rodland [EMAIL PROTECTED] wrote: On Monday 05 May 2008 09:50:08 am J. Shirley wrote: On Mon, May 5, 2008 at 4:31 AM, Matt S Trout [EMAIL PROTECTED] wrote: On Sun, May 04, 2008

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

2008-05-05 Thread Matt S Trout
On Mon, May 05, 2008 at 07:50:08AM -0700, J. Shirley wrote: On Mon, May 5, 2008 at 4:31 AM, Matt S Trout [EMAIL PROTECTED] wrote: On Sun, May 04, 2008 at 09:06:30AM -0700, J. Shirley wrote: On Sun, May 4, 2008 at 8:52 AM, Zbigniew Lukasiak [EMAIL PROTECTED] wrote: Sorry but

[Catalyst] Re: Let's port Twitter to Perl

2008-05-05 Thread Aristotle Pagaltzis
* John Napiorkowski [EMAIL PROTECTED] [2008-05-05 16:45]: I heard Twitter was abandoning RoR. Except, they aren’t. http://twitter.com/ev/statuses/801530348 Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/ ___ List:

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

2008-05-05 Thread J. Shirley
On Mon, May 5, 2008 at 9:49 AM, Zbigniew Lukasiak [EMAIL PROTECTED] wrote: On Mon, May 5, 2008 at 6:19 PM, J. Shirley [EMAIL PROTECTED] wrote: On Mon, May 5, 2008 at 8:18 AM, Andrew Rodland [EMAIL PROTECTED] wrote: On Monday 05 May 2008 09:50:08 am J. Shirley wrote: On Mon, May 5,

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

2008-05-05 Thread J. Shirley
On Mon, May 5, 2008 at 10:02 AM, Matt S Trout [EMAIL PROTECTED] wrote: On Mon, May 05, 2008 at 07:50:08AM -0700, J. Shirley wrote: On Mon, May 5, 2008 at 4:31 AM, Matt S Trout [EMAIL PROTECTED] wrote: On Sun, May 04, 2008 at 09:06:30AM -0700, J. Shirley wrote: On Sun, May 4,

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

2008-05-05 Thread J. Shirley
On Mon, May 5, 2008 at 9:51 AM, luke saunders [EMAIL PROTECTED] wrote: On Mon, May 5, 2008 at 5:19 PM, J. Shirley [EMAIL PROTECTED] wrote: On Mon, May 5, 2008 at 8:18 AM, Andrew Rodland [EMAIL PROTECTED] wrote: On Monday 05 May 2008 09:50:08 am J. Shirley wrote: On Mon, May 5, 2008

Re: [Catalyst] Re: Catalyst, utf8 in form element type text - Solved

2008-05-05 Thread Bill Moseley
On Mon, May 05, 2008 at 04:12:53PM +0200, Marius Kjeldahl wrote: Problem solved. In my View class, like: package MyApp::View::TT; use strict; use warnings; use base 'Catalyst::View::TT'; replace the last line with: use base 'Catalyst::View::TT::ForceUTF8'; That seems like the wrong

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

2008-05-05 Thread Peter Karman
On 05/05/2008 12:16 PM, J. Shirley wrote: The discussions about a better CRUD base class with REST and RPC adapters is obviously the better (best?) solution, but I also think there will be significant disagreement between appropriate URI resource conventions (as my exchange with zby is an

[Catalyst] How to display a single HTML::Widget form field in a TT2 template?

2008-05-05 Thread Ryan Grace
Hello all, Sorry again if this is spelled out somewhere that I'm missing. I'm getting up to speed with HTML::Widget as used in the Catalyst Tutorial online in the Advanced CRUD section. I would like more control over the layout of my form so I'd like to build a more detailed template than

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

2008-05-05 Thread J. Shirley
On Mon, May 5, 2008 at 11:28 AM, Peter Karman [EMAIL PROTECTED] wrote: On 05/05/2008 12:16 PM, J. Shirley wrote: The discussions about a better CRUD base class with REST and RPC adapters is obviously the better (best?) solution, but I also think there will be significant

Re: [Catalyst] Re: Let's port Twitter to Perl

2008-05-05 Thread John Napiorkowski
--- On Mon, 5/5/08, Aristotle Pagaltzis [EMAIL PROTECTED] wrote: From: Aristotle Pagaltzis [EMAIL PROTECTED] Subject: [Catalyst] Re: Let's port Twitter to Perl To: catalyst@lists.scsys.co.uk Date: Monday, May 5, 2008, 1:07 PM * John Napiorkowski [EMAIL PROTECTED] [2008-05-05 16:45]: I

Re: [Catalyst] Re: Catalyst, utf8 in form element type text - Solved

2008-05-05 Thread Marius Kjeldahl
Bill Moseley wrote: use base 'Catalyst::View::TT::ForceUTF8'; That seems like the wrong approach. Data should be decoded on input from the outside and encoded on output. I'm not sure when it would be advisable to force utf8 flag on items in the stash, but I have not looked at that module in

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

2008-05-05 Thread luke saunders
On Mon, May 5, 2008 at 7:28 PM, Peter Karman [EMAIL PROTECTED] wrote: On 05/05/2008 12:16 PM, J. Shirley wrote: The discussions about a better CRUD base class with REST and RPC adapters is obviously the better (best?) solution, but I also think there will be significant

Re: [Catalyst] Re: Catalyst, utf8 in form element type text - Solved

2008-05-05 Thread Bill Moseley
On Mon, May 05, 2008 at 09:22:19PM +0200, Marius Kjeldahl wrote: form tags should have accept-charset I tried this but couldn't get it working correctly, which may be entirely my fault of course. What does couldn't get it working mean? You couldn't get an accept-charset on your form tags?

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

2008-05-05 Thread luke saunders
On Mon, May 5, 2008 at 6:16 PM, J. Shirley [EMAIL PROTECTED] wrote: On Mon, May 5, 2008 at 9:51 AM, luke saunders [EMAIL PROTECTED] wrote: On Mon, May 5, 2008 at 5:19 PM, J. Shirley [EMAIL PROTECTED] wrote: On Mon, May 5, 2008 at 8:18 AM, Andrew Rodland [EMAIL PROTECTED] wrote:

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

2008-05-05 Thread J. Shirley
On Mon, May 5, 2008 at 1:10 PM, luke saunders [EMAIL PROTECTED] wrote: On Mon, May 5, 2008 at 6:16 PM, J. Shirley [EMAIL PROTECTED] wrote: On Mon, May 5, 2008 at 9:51 AM, luke saunders [EMAIL PROTECTED] wrote: On Mon, May 5, 2008 at 5:19 PM, J. Shirley [EMAIL PROTECTED] wrote:

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

2008-05-05 Thread Peter Karman
On 05/05/2008 03:29 PM, J. Shirley wrote: My vote is hierarchy like: /foo /{token} # Can be pk1 if you so desire /- # - is never acceptable as an identifier /create # if you want an empty action here Now, I do vote against having an explicit

Re: [Catalyst] Let's port Twitter to Perl

2008-05-05 Thread Chris Carline
On Mon, May 5, 2008 at 3:29 PM, John Napiorkowski [EMAIL PROTECTED] wrote: I heard Twitter was abandoning RoR. It would be the coup of the year if we could bring them to Perl, but from what I understand it's not even on the consideration list. So why not give them a little help? We should

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

2008-05-05 Thread Daniel McBrearty
If you don't want new versions of modules, then *don't upgrade them*. and when you (or a total newcomer to the language/framework) do a *new* install? and the latest greatest is broken right out of the box? looks great, hey? The code may have been broken - but not so broken that it couldn't work

Re: [Catalyst] How to display a single HTML::Widget form field in a TT2 template?

2008-05-05 Thread Carl Franks
2008/5/5 Ryan Grace [EMAIL PROTECTED]: Hello all, Sorry again if this is spelled out somewhere that I'm missing. I'm getting up to speed with HTML::Widget as used in the Catalyst Tutorial online in the Advanced CRUD section. I'm surprised the tutorial still uses HTML::Widget - as it's docs

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

2008-05-05 Thread luke saunders
On Mon, May 5, 2008 at 9:29 PM, J. Shirley [EMAIL PROTECTED] wrote: On Mon, May 5, 2008 at 1:10 PM, luke saunders [EMAIL PROTECTED] wrote: On Mon, May 5, 2008 at 6:16 PM, J. Shirley [EMAIL PROTECTED] wrote: On Mon, May 5, 2008 at 9:51 AM, luke saunders [EMAIL PROTECTED] wrote:

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

2008-05-05 Thread Patrick Donelan
The only header I've found you can't always set via xhr.setRequestHeader() is WWW-Authenticate because the browser thinks it should be responsible for HTTP Authentication. Which is why the last 2 optional arguments to xhr.open() are username and password, to effectively let you set these headers