Re: plugins; was Re: [Catalyst] debug mode

2007-06-06 Thread Matt S Trout
On Tue, Jun 05, 2007 at 01:42:42PM -0700, Michael Reece wrote: sub _ACTION : Pricvate { my ($self, $c) = @_; $self-_context($c); $self-SUPER::_ACTION($c); } That's not only in the wrong place to work for begin/end/auto it screws up the destruction process and is

Re: plugins; was Re: [Catalyst] debug mode

2007-06-06 Thread mla
Matt S Trout wrote: On Tue, Jun 05, 2007 at 01:42:42PM -0700, Michael Reece wrote: sub _ACTION : Pricvate { my ($self, $c) = @_; $self-_context($c); $self-SUPER::_ACTION($c); } That's not only in the wrong place to work for begin/end/auto it screws up the destruction process and

Re: plugins; was Re: [Catalyst] debug mode

2007-06-06 Thread Matt S Trout
On Wed, Jun 06, 2007 at 02:18:33PM -0700, mla wrote: Matt S Trout wrote: On Wed, Jun 06, 2007 at 12:29:12PM -0700, mla wrote: Is it not possible to offer the current Catalyst instance through a class method? Something analogous to Apache-request, rather than having to do the whole

Re: plugins; was Re: [Catalyst] debug mode

2007-06-06 Thread mla
Matt S Trout wrote: On Wed, Jun 06, 2007 at 02:18:33PM -0700, mla wrote: Matt S Trout wrote: On Wed, Jun 06, 2007 at 12:29:12PM -0700, mla wrote: Is it not possible to offer the current Catalyst instance through a class method? Something analogous to Apache-request, rather than having to do

Re: [Catalyst] debug mode

2007-06-05 Thread Charlie Garrison
Good evening, On 5/6/07 at 1:17 AM +0100, Matt S Trout [EMAIL PROTECTED] wrote: in lib/MyApp.pm: use Catalyst qw/ +MyApp::Plugin::DebugMode ... /; The + is important. Would you mind explaining that a bit further? Or pointing to documentation? When is it appropriate to use the + and

Re: [Catalyst] debug mode

2007-06-05 Thread Matthew Pitts
performance? Thanks, Matt -Original Message- From: Matthew Pitts [mailto:[EMAIL PROTECTED] Sent: Monday, June 04, 2007 8:23 AM To: The elegant MVC web framework Subject: RE: [Catalyst] debug mode I wrote a cheap little plugin for my app to override $c-debug

Re: [Catalyst] debug mode

2007-06-05 Thread Matt S Trout
On Tue, Jun 05, 2007 at 08:40:52AM -0400, Matthew Pitts wrote: On Tue, 2007-06-05 at 01:18 +0100, Matt S Trout wrote: On Mon, Jun 04, 2007 at 12:55:38PM -0700, Dylan Vanderhoof wrote: Oh, missed this email. Yours looks better than mine. =) Except for being a performance hit on every

Re: [Catalyst] debug mode

2007-06-05 Thread Matt S Trout
On Tue, Jun 05, 2007 at 10:30:49PM +1000, Charlie Garrison wrote: Good evening, On 5/6/07 at 1:17 AM +0100, Matt S Trout [EMAIL PROTECTED] wrote: in lib/MyApp.pm: use Catalyst qw/ +MyApp::Plugin::DebugMode ... /; The + is important. Would you mind explaining that a bit

Re: [Catalyst] debug mode

2007-06-05 Thread Daniel McBrearty
FWIW I just turn debug off, and do export MYAPP_DEBUG=1; script/myapp_server.pl -r; as I am developing. As that line is always there in the command buffer it's no hassle. If I want I can have BEGIN { $ENV{MYAPP_DEBUG} = 1; } in test scripts. Basically i find just using one mechanism is

Re: [Catalyst] debug mode

2007-06-05 Thread Brian Cassidy
Daniel McBrearty wrote: FWIW I just turn debug off, and do export MYAPP_DEBUG=1; script/myapp_server.pl -r; the -d option is so much easier to type :) script/myapp_server.pl -d -r -Brian ___ List: Catalyst@lists.rawmode.org Listinfo:

Re: [Catalyst] debug mode

2007-06-05 Thread Charlie Garrison
Good morning, On 5/6/07 at 8:52 AM -0400, Matthew Pitts [EMAIL PROTECTED] wrote: So... use Catalyst qw/ +MyApp::Plugin::DebugMode /; will load the MyApp::Plugin::DebugMode package. Without the '+' it would try to find Catalyst::Plugin::MyApp::Plugin::DebugMode. Hope this helps. I

plugins; was Re: [Catalyst] debug mode

2007-06-05 Thread mreece
if the catalyst base controller class provided an easy way to access $c from a utility method (vs an action method, which receives $c 'automatically'), then i think plugins might be a little less popular. some of my bits have ended up as controllers because i'd rather

Re: plugins; was Re: [Catalyst] debug mode

2007-06-05 Thread mreece
if the catalyst base controller class provided an easy way to access $c from a utility method (vs an action method, which receives $c 'automatically'), then i think plugins might be a little less popular. some of my bits have ended up as controllers because i'd rather oops,

Re: plugins; was Re: [Catalyst] debug mode

2007-06-05 Thread Matt S Trout
On Tue, Jun 05, 2007 at 08:04:03AM -0700, [EMAIL PROTECTED] wrote: if the catalyst base controller class provided an easy way to access $c from a utility method (vs an action method, which receives $c 'automatically'), then i think plugins might be a little less popular. Well, you can already

[Catalyst] debug mode

2007-06-04 Thread John Goulah
What is the best way to deal with the -Debug flag between a production and development environment? Obviously its not desirable to go into the file and remove the flag every time the code goes to prod. I see you can start the stanalone server with -d to force debug. I think I remember about

RE: [Catalyst] debug mode

2007-06-04 Thread mark
2007 15:32 To: The elegant MVC web framework Subject: [Catalyst] debug mode What is the best way to deal with the -Debug flag between a production and development environment? Obviously its not desirable to go into the file and remove the flag every time the code goes to prod. I see you can start

Re: [Catalyst] debug mode

2007-06-04 Thread mreece
i use the following in sandbox httpd.conf's: Perl BEGIN { $ENV{MYAPP_DEBUG} = 1; } use MyApp; /Perl and s/1/0/ for prod. What is the best way to deal with the -Debug flag between a production and development environment? Obviously its not desirable to go into the file and remove

Re: [Catalyst] debug mode

2007-06-04 Thread Bernhard Graf
John Goulah wrote: What is the best way to deal with the -Debug flag between a production and development environment? Obviously its not desirable to go into the file and remove the flag every time the code goes to prod. I see you can start the stanalone server with -d to force debug. I

Re: [Catalyst] debug mode

2007-06-04 Thread Dave Rolsky
On Mon, 4 Jun 2007, John Goulah wrote: What is the best way to deal with the -Debug flag between a production and development environment? Obviously its not desirable to go into the file and remove the flag every time the code goes to prod. I see you can start the stanalone server with -d to

RE: [Catalyst] debug mode

2007-06-04 Thread Matthew Pitts
for that though it should be pretty straight forwards. Mark __ From: John Goulah [mailto:[EMAIL PROTECTED] Sent: 04 June 2007 15:32 To: The elegant MVC web framework Subject: [Catalyst] debug mode What

RE: [Catalyst] debug mode

2007-06-04 Thread Dylan Vanderhoof
Oh, missed this email. Yours looks better than mine. =) -D -Original Message- From: Matthew Pitts [mailto:[EMAIL PROTECTED] Sent: Monday, June 04, 2007 8:23 AM To: The elegant MVC web framework Subject: RE: [Catalyst] debug mode I wrote a cheap little plugin for my app