Re: [Catalyst] [PATCH] Catalyst::DispatchType::Chained (5.7101, 5.80001)

2009-04-20 Thread Florian Ragwitz
On Mon, Apr 20, 2009 at 05:16:55AM +0300, Oleg Kostyuk wrote: > This bug is present in 5.7101: created Text::SimpleTable with 3 > columns, while we need only two. This is fixed in the latest stable release of Catalyst-Runtime. Please upgrade. -- BOFH excuse #414: tachyon emissions overloading t

Re: [Catalyst] nmake catalyst_par

2009-04-20 Thread Octavian Râşniţă
From: "Tomas Doran" On 19 Apr 2009, at 17:27, Octavian Râşniţă wrote: With Catalyst 5.8 I've tried: E:\web\T2> perl Makefile.PL ... E:\web\T2> nmake ... E:\web\T2> nmake catalyst_par ... Could be an error of PAR, or something else? I guess you're using perl 5.8 rather than 5.10? If so, t

Re: [Catalyst] nmake catalyst_par

2009-04-20 Thread Tomas Doran
On 20 Apr 2009, at 10:01, Octavian Râşniţă wrote: Thanks and sorry for not giving a complete explanation, but I use Perl 5.10.0. I've also added "use Class::C3" but it still gives the error below. I will report this to the PAR mailing list if you think it is a PAR error. That sounds reaso

[Catalyst] C::Engine::HTTP taking very long

2009-04-20 Thread Terence Monteiro
I'm getting very high times when running my Catalyst application in standalone mode. I used Devel::NYTProf and zeroed in on a few subs in Catalyst::Engine::HTTP which take long: Catalyst::Engine::HTTP::_socket_data: 678s(exclusive) 678s(inclusive) Catalyst::Engine::HTTP::run:55.5s(exclusive)

Re: [Catalyst] C::Engine::HTTP taking very long

2009-04-20 Thread Peter Edwards
Terence, 2009/4/20 Terence Monteiro > I'm getting very high times when running my Catalyst application in > standalone mode. I used Devel::NYTProf and zeroed in on a few subs in > Catalyst::Engine::HTTP which take long: > Is your DNS set up correctly to reverse lookup the IP address you are test

Re: [Catalyst] [PATCH] Catalyst::DispatchType::Chained (5.7101, 5.80001)

2009-04-20 Thread Tomas Doran
On 20 Apr 2009, at 03:16, Oleg Kostyuk wrote: As I see, we don't have this error in 5.80001, but we have other error nearly to same place: == --- Chained.pm.orig 2009-04-20 05:10:24.0 +0300 +++ Chained.pm 2009-04-2

[Catalyst] Re: [ANNOUNCE] Re: Catalyst Runtime 5.80001 - MooseX::MethodAttributes::Inheritable 0.06

2009-04-20 Thread Octavian Râsnita
From: "Tomas Doran" Octavian Râsnita wrote: I want to report something that might be a packaging bug, or maybe you can tell me what could be the problem... This version requires MooseX-MethodAttributes-0.05.tar.gz and I couldn't install this module under Windows using CPAN. Hmm. If I rem

Re: [Catalyst] C::Engine::HTTP taking very long

2009-04-20 Thread Andrew Rodland
On Monday 20 April 2009 04:35:05 am Terence Monteiro wrote: > I'm getting very high times when running my Catalyst application in > standalone mode. I used Devel::NYTProf and zeroed in on a few subs in > Catalyst::Engine::HTTP which take long: > The times for accept are because accept is the funct

Re: [Catalyst] C::Engine::HTTP taking very long

2009-04-20 Thread Ian Wells
2009/4/20 Andrew Rodland : > The time spent in inet_ntoa > is your system DNS resolver choking while trying to reverse-lookup the source > IP address of the request. Most likely situation: you're using RFC1918 > addresses and your network is set up improperly to do DNS for these. If you > can't fix

Re: [Catalyst] C::Engine::HTTP taking very long

2009-04-20 Thread Andrew Rodland
On Monday 20 April 2009 06:26:57 am Ian Wells wrote: > 2009/4/20 Andrew Rodland : > > The time spent in inet_ntoa > > is your system DNS resolver choking while trying to reverse-lookup the > > source IP address of the request. Most likely situation: you're using > > RFC1918 addresses and your netwo

Re: [Catalyst] What's the best way to exclude static requests from needing user to log in?

2009-04-20 Thread Matt S Trout
On Sun, Apr 19, 2009 at 05:53:42PM +0400, Nickolay Platonov wrote: > and I'm using this to implicitly specify which actions in controllers > require authorization: > > #== > #Controller > > sub update :Local :ActionClass('+Travel::Action::AuthorizationRequired') { > my ( $self

Re: [Catalyst] Local action in controller not mapping to template (retry)

2009-04-20 Thread Matt S Trout
On Sun, Apr 19, 2009 at 07:55:31AM -0700, Anne Brown wrote: > Apache says: > >File does not exist: c:/webs/webapp/www/somecontroller/ Then the request isn't even getting to Catalyst. Check your apache config. -- Matt S Trout Need help with your Catalyst or DBIx::Class projec

Re: [Catalyst] Perplexed Catalyst newbie

2009-04-20 Thread Matt S Trout
On Sun, Apr 19, 2009 at 01:05:25PM -0700, Sean McAfee wrote: > I changed $c->model('Language') to $c->model('DB::Language') in my > controller, but as far as I can tell, nothing has changed. I still get > Quiz::Model::DB::Language objects back, not Quiz::Schema::Language objects. > The snippet abo

Re: [Catalyst] Perplexed Catalyst newbie

2009-04-20 Thread Matt S Trout
On Sun, Apr 19, 2009 at 09:51:42PM -0700, Sean McAfee wrote: > [% FOR a IN as; FOR b IN a.bs; b.cs; ""; END; END %] b.cs here is equivalent to: my $val = [ $b->cs ]; not my $val = $b->cs; You probably wanted b.cs_rs, which always returns a resultset. -- Matt S Trout Need help wit

Re: [Catalyst] [PATCH] Catalyst::DispatchType::Chained (5.7101, 5.80001)

2009-04-20 Thread Matt S Trout
On Mon, Apr 20, 2009 at 05:16:55AM +0300, Oleg Kostyuk wrote: > PS: probably, it's needed to check all other places, that use > Text::SimpleTable That'd be well worth doing. Please send us a patch if you find any more when you check them :) -- Matt S Trout Need help with your Cataly

Re: [Catalyst] C::Engine::HTTP taking very long

2009-04-20 Thread Matt S Trout
On Mon, Apr 20, 2009 at 01:26:57PM +0200, Ian Wells wrote: > 2009/4/20 Andrew Rodland : > > The time spent in inet_ntoa > > is your system DNS resolver choking while trying to reverse-lookup the > > source > > IP address of the request. Most likely situation: you're using RFC1918 > > addresses and

Re: [Catalyst] Local action in controller not mapping to template (retry)

2009-04-20 Thread Anne Brown
t0m, My development environment is a Windoze VISTA 64-bit OS, running Apache 2.2.11, and perl 5.8.8 and plain old CGI. My other development environment is the same except for a Linux OS and is having the same problem. You said that :Private makes an action not dispatchable, however, the

Re: [Catalyst] Local action in controller not mapping to template (retry)

2009-04-20 Thread Andrew Rodland
On Monday 20 April 2009 08:42:16 am Anne Brown wrote: > t0m, > > > My development environment is a Windoze VISTA 64-bit OS, running Apache > 2.2.11, > and perl 5.8.8 and plain old CGI. My other development environment is the > same except for a Linux OS and is having the same problem. > > > You s

Re: [Catalyst] Local action in controller not mapping to template (retry)

2009-04-20 Thread Anne Brown
Andrew Rodland wrote: > >> >> sub index : Private {} >> > > That's legacy and you shouldn't do it. It should be > > sub index :Path Args(0) { ... } > > Having index be a private action made no sense, which is why nothing does > that > anymore -- the helper scripts don't generate it, a

Re: [Catalyst] Local action in controller not mapping to template (retry): Solved

2009-04-20 Thread Anne Brown
Matt S Trout-2 wrote: > >> Apache says: >> >>File does not exist: c:/webs/webapp/www/somecontroller/ > > Then the request isn't even getting to Catalyst. Check your apache config. > Matt, To prove what you said, a die statement in the :Local action produced the same apache error. T

Re: [Catalyst] Perplexed Catalyst newbie

2009-04-20 Thread Sean McAfee
On Mon, Apr 20, 2009 at 6:29 AM, Matt S Trout wrote: > On Sun, Apr 19, 2009 at 09:51:42PM -0700, Sean McAfee wrote: > > [% FOR a IN as; FOR b IN a.bs; b.cs; ""; END; END %] > > b.cs here is equivalent to: > > my $val = [ $b->cs ]; > > not > > my $val = $b->cs; > Where does that happen? I'm prett

Re: [Catalyst] [PATCH] Catalyst::DispatchType::Chained (5.7101, 5.80001)

2009-04-20 Thread Oleg Kostyuk
2009/4/20 Matt S Trout : > On Mon, Apr 20, 2009 at 05:16:55AM +0300, Oleg Kostyuk wrote: >> PS: probably, it's needed to check all other places, that use >> Text::SimpleTable > > That'd be well worth doing. Please send us a patch if you find any more when > you check them :) Sure, why not :) New

Re: [Catalyst] [PATCH] Catalyst::DispatchType::Chained (5.7101, 5.80001)

2009-04-20 Thread Marcus Ramberg
On Mon, Apr 20, 2009 at 9:23 PM, Oleg Kostyuk wrote: > 2009/4/20 Matt S Trout : > > On Mon, Apr 20, 2009 at 05:16:55AM +0300, Oleg Kostyuk wrote: > >> PS: probably, it's needed to check all other places, that use > Text::SimpleTable > > > > That'd be well worth doing. Please send us a patch if yo

[Catalyst] Re: [ANNOUNCE] Re: Catalyst Runtime 5.80001 - MooseX::MethodAttributes::Inheritable 0.06

2009-04-20 Thread Tomas Doran
On 20 Apr 2009, at 09:53, Octavian Râsnita wrote: But if I rename the BlaBla.pm controller to Ana.pm and also edit it to be package T5::Controller::Ana; the server doesn't start, but gives the error below. I can replicate this, and I've got a fairly good idea what it's caused by - this

Re: [Catalyst] [PATCH] Catalyst::DispatchType::Chained (5.7101, 5.80001)

2009-04-20 Thread Oleg Kostyuk
> I don't think that was what Matt asked for. Anyways, > 1) Why can't your changes be a patch to Text::SimpleTable? I think that new module will be better in this case, because someone else can be needed unchanged Text::SimpleTable. > 2) Text::SimpleTable::AutoWidth uses Moose and Text::SimpleTabl

[Catalyst] Problem with reloading in fresh project (5.80001)

2009-04-20 Thread Oleg Kostyuk
Hello, all. I found problem after upgrading to 5.80001. Here is steps to reproduce it: - create new application, for example "catalyst.pl Test" - run dev server in one terminal, "./script/test_server.pl -r" - in other terminal make "touch test.conf" in application directory, and server will rest

Re: [Catalyst] [PATCH] Catalyst::DispatchType::Chained (5.7101, 5.80001)

2009-04-20 Thread Lars Balker Rasmussen
On Mon, Apr 20, 2009 at 9:58 PM, Oleg Kostyuk wrote: >> I don't think that was what Matt asked for. Anyways, >> 1) Why can't your changes be a patch to Text::SimpleTable? > I think that new module will be better in this case, because someone > else can be needed unchanged Text::SimpleTable. May I

Re: [Catalyst] [PATCH] Catalyst::DispatchType::Chained (5.7101, 5.80001)

2009-04-20 Thread Lars Balker Rasmussen
On Mon, Apr 20, 2009 at 10:19 PM, Oleg Kostyuk wrote: > 2009/4/20 Lars Balker Rasmussen : >> On Mon, Apr 20, 2009 at 9:58 PM, Oleg Kostyuk wrote: >> >> May I suggest: >> >>           my $t1 = Text::SimpleTable->new( 5, 10 ); >>           my $t2 = Text::SimpleTable->new( [ 5, 'Foo' ], [ 10, 'Bar'

Re: [Catalyst] [PATCH] Catalyst::DispatchType::Chained (5.7101, 5.80001)

2009-04-20 Thread Oleg Kostyuk
2009/4/20 Lars Balker Rasmussen : > On Mon, Apr 20, 2009 at 9:58 PM, Oleg Kostyuk wrote: > > May I suggest: > >           my $t1 = Text::SimpleTable->new( 5, 10 ); >           my $t2 = Text::SimpleTable->new( [ 5, 'Foo' ], [ 10, 'Bar' ] ); >           my $t3 = Text::SimpleTable::AutoWidth->new( {

Re: [Catalyst] [PATCH] Catalyst::DispatchType::Chained (5.7101, 5.80001)

2009-04-20 Thread Oleg Kostyuk
2009/4/20 Lars Balker Rasmussen : > On Mon, Apr 20, 2009 at 10:19 PM, Oleg Kostyuk wrote: > I meant, it's easy to extend the Text::SimpleTable API without breaking > backwards compatibility. Well, I did it that way because it's seems more logical to me, and definitely not break any compatibility,

Re: [Catalyst] [PATCH] Catalyst::DispatchType::Chained (5.7101, 5.80001)

2009-04-20 Thread Tomas Doran
On 20 Apr 2009, at 20:58, Oleg Kostyuk wrote: I don't think that was what Matt asked for. Anyways, 1) Why can't your changes be a patch to Text::SimpleTable? I think that new module will be better in this case, because someone else can be needed unchanged Text::SimpleTable. sri _wrote cataly

Re: [Catalyst] Re: [ANNOUNCE] Re: Catalyst Runtime 5.80001 - MooseX::MethodAttributes::Inheritable 0.06

2009-04-20 Thread Tomas Doran
On 20 Apr 2009, at 20:50, Tomas Doran wrote: I think you'll find that this will _only_ happen for controllers whos names sort alphabetically below 'Base.pm', and which don't contain any actions. I guess that is pretty atypical for normal applications :) Still a bug though, I'll try and wo

Re: [Catalyst] Problem with reloading in fresh project (5.80001)

2009-04-20 Thread Tomas Doran
On 20 Apr 2009, at 20:53, Oleg Kostyuk wrote: Really, I not write any new code, but server can't restart. I'm sure that this is not expected behaviour. Is this known bug? No, it wasn't a known bug. Only happens on perl 5.10, and I do most of my development on 5.8 (although I run 5.10 some pl

[Catalyst] deployment with 3-tiered server setup: How to handle config?

2009-04-20 Thread Jens Schwarz
Hi, I am planing to have a 3-tiered catalyst setup: one development server, one test server and one production server. Each of those has of course different setups (mysql-users, hostnames, apache configs, etc). How can I create a catalyst application that can cope with these different settings