Re: [Catalyst] New Apress book shipping now from Amazon.com

2009-07-11 Thread Francesc Romà i Frigolé
Both links below point to amazon.co.uk which still doesn't have the book. Maybe you could point as well to amazon.com: The USA site already has the book, and it's cheaper. Although I don't know how much the shipping is going to be compared to the UK site. Francesc On Thu, Jul 9, 2009 at 1:21 PM

Re: [Catalyst] New Apress book shipping now from Amazon.com

2009-07-11 Thread Ari Constancio
2009/7/11 Francesc Romà i Frigolé : > Both links below point to amazon.co.uk which still doesn't have the book. > Maybe you could point as well to amazon.com: The USA site already has the > book, and it's cheaper. Although I don't know how much the shipping is going > to be compared to the UK site.

Re: [Catalyst] Looking at upload size/type before it is uploaded?

2009-07-11 Thread Tomas Doran
On 10 Jul 2009, at 16:36, A Murka wrote: What's the recommended way to validate file upload's size and type (either filename or MIME) before downloading it into the temp directory? I don't want the user to be able to upload a 200 MB file in its entirety before having the controller reject it fo

[Catalyst] sql debugging hooks

2009-07-11 Thread Minty
Hi, I'm trying to create some hooks to make it easy to see what sql queries are being run by any particular catalyst request. I have: package My::Schema; use base qw/DBIx::Class::Schema/; and then Schema/Employee.pm module, etc: package My::Schema::Employee; use base qw/DBIx::C

[Catalyst] Re: sql debugging hooks

2009-07-11 Thread Minty
> But I want to inject my $debugger via the Model or schema, and > enable/disable it globablly via a configuration file flag. What I meant to say was I want to inject my custom debugobj handler globally (at least in development), then simplify the code in the Controllers to just: $model->result

Re: [Catalyst] Re: sql debugging hooks

2009-07-11 Thread Ash Berlin
On 11 Jul 2009, at 19:47, Minty wrote: But I want to inject my $debugger via the Model or schema, and enable/disable it globablly via a configuration file flag. What I meant to say was I want to inject my custom debugobj handler globally (at least in development), then simplify the code in th

Re: [Catalyst] New Apress book shipping now from Amazon.com

2009-07-11 Thread Darren Duncan
Ari Constancio wrote: For those interested, Amazon.com is shipping now pre-orders for "The Definitive Guide to Catalyst". Not sure about new orders, though. I've had a different experience so far. I pre-ordered the book on amazon.ca back on June 19th, and it estimated it would ship July 10, t

Re: [Catalyst] How to do pass-through login?

2009-07-11 Thread Tomas Doran
On 10 Jul 2009, at 22:07, Stephan Jauernick wrote: Hi, i got a similar problem some time ago then Tomas 't0m' Doran pointed me someway on irc. If you wish i could post it. It relays on a technique where you flash the url where you want to post to and then it will be placed in a session w

Re: [Catalyst] How to do pass-through login?

2009-07-11 Thread Tomas Doran
On 10 Jul 2009, at 21:09, Gunnar Strand wrote: Thanks to all who answered my post regarding pass-through login! It put me on the right track and it works like a charm now. In my solution I have an action, Catalyst::Action::Restricted, which I put on the subroutines which require a logged-i

Re: [Catalyst] sql debugging hooks

2009-07-11 Thread Tomas Doran
On 11 Jul 2009, at 19:45, Minty wrote: But I want to inject my $debugger via the Model or schema, and enable/disable it globablly via a configuration file flag. I'm a bit lost as to where/how I can do that. Any pointers? package MyApp::Model::DB; use Moose; use namespace::autoclean; extends

Re: [Catalyst] Hangs in RenderView in "end"

2009-07-11 Thread Tomas Doran
On 9 Jul 2009, at 07:45, Gunnar Strand wrote: Here's what I wrote, and I've attached a patch for Catalyst::View::TT.pm. I'm very inexperienced using patches, so let me know if you want it in any other way. I changed the wording slightly to be a little more affirmative and applied: http://

Re: [Catalyst] Re: Incorrect $c->req->base using Catalyst::Engine::SCGI on Win32

2009-07-11 Thread Tomas Doran
On 30 Jun 2009, at 14:51, Will Hawes wrote: Having played around with this a little more it looks as though when things are working properly, REQUEST_URI is the same as SCRIPT_NAME concatenated with PATH_INFO. With that in mind, perhaps revising the suggested fix to something like this: sub pre

Re: [Catalyst] how to set CATALYST_DEBUG

2009-07-11 Thread Tomas Doran
On 30 Jun 2009, at 02:59, Malloy wrote: I can get $ENV{CATALYST_DEBUG} in my templates. But can't get it in lib/{App}.pm. #Use of uninitialized value $ENV{"CATALYST_DEBUG"} in print at / path/lib/{app}.pm line 38. And Catalyst is up to date. cpan> install Catalyst Catalyst is up to date

Re: [Catalyst] "Use of uninitialized value $buffer" error

2009-07-11 Thread Tomas Doran
On 1 Jul 2009, at 10:11, Merlyn Kline wrote: What are people's thoughts about adding a specific warning if you try to write undef? (As you could still cause this warning by doing that explicitly) Depends why you might do this - if it's legitimate (e.g. to force the headers to be flushed?) the

[Catalyst] Configuration based on hostname

2009-07-11 Thread Mihai Bazon
Hi folks, I think this was raised before but I don't remember to have seen a satisfactory answer. Someone please point me into the right direction. I want to deploy a Catalyst app that will be used to serve multiple websites. The platform will be Apache2 (prefork) + mod_perl2. I want Catalyst