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

2007-06-07 Thread Matt S Trout
On Thu, Jun 07, 2007 at 04:36:41PM -0700, Maurice Aubrey wrote: > >Separating out the interrogation of the context and retrieval of data into > >the ACCEPT_CONTEXT is how you avoid loose coupling - and it also then means > >you know you have -one- method that requires a mocked $c to test rather > >

[Catalyst] Trapping exit/respawning FastCgiExternalServer

2007-06-07 Thread Andrew Peebles
Running a "production" Catalyst app as a FastCgiExternalServer. Occasionally it crashes. I'd like to trap that event, use StackTrace and send the web admin email (with the trace) to alert them to the crash. Ideally I would even like to have the app respawned. Haven't figured out how ...

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

2007-06-07 Thread Maurice Aubrey
Matt S Trout wrote: On Thu, Jun 07, 2007 at 03:12:10PM -0700, mla wrote: Matt S Trout wrote: On Thu, Jun 07, 2007 at 01:04:02PM -0700, mla wrote: Other than the fact you don't like the style, why is it bad? You don't like singletons? I'm not fond of any magic global if I can possibly avoid it

[Catalyst] DBIx::Class 0.07999_05 (aka 0.08 RC2) released

2007-06-07 Thread Brandon Black
We have a second release candidate now after the (much appreciated) feedback from the first one. Most of the issues were related to module dependency issues in the build/test process rather than real code regressions, so it's looking pretty good so far. Please give this one a good testing too.

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

2007-06-07 Thread Matt S Trout
On Thu, Jun 07, 2007 at 03:12:10PM -0700, mla wrote: > Matt S Trout wrote: > >On Thu, Jun 07, 2007 at 01:04:02PM -0700, mla wrote: > >>Other than the fact you don't like the style, why is it bad? > >>You don't like singletons? > > > >I'm not fond of any magic global if I can possibly avoid it - I f

Re: [Catalyst] Project Opportunity

2007-06-07 Thread Jmax
MojoMojo and our application have slightly different needs. I'm not opposed to using code directly from MojoMojo (as they will be under the same license), but the code will need to be modified to fit the requirements of the application. All files with code deriving from MojoMojo will clearly

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

2007-06-07 Thread mla
Matt S Trout wrote: On Thu, Jun 07, 2007 at 01:04:02PM -0700, mla wrote: Other than the fact you don't like the style, why is it bad? You don't like singletons? I'm not fond of any magic global if I can possibly avoid it - I find it tends to encourage tight coupling of code and action at a dis

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

2007-06-07 Thread Dave Rolsky
On Thu, 7 Jun 2007, Matt S Trout wrote: I'm not fond of any magic global if I can possibly avoid it - I find it tends to encourage tight coupling of code and action at a distance and makes testing and debugging messy. I agree. A singleton is basically a _very_ thin mask for a global. I prefe

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

2007-06-07 Thread Matt S Trout
On Thu, Jun 07, 2007 at 01:04:02PM -0700, mla wrote: > Matt S Trout wrote: > >On Thu, Jun 07, 2007 at 03:55:16AM -0700, Jonathan Swartz wrote: > >>mia wrote: > >>>Matt S Trout wrote: > On Wed, Jun 06, 2007 at 02:18:33PM -0700, mla wrote: > >>>Assuming I'm not using threads, how would I hurt mys

Re: [Catalyst] strange namespace behavior for dbic : schema

2007-06-07 Thread Matt S Trout
On Thu, Jun 07, 2007 at 03:40:00PM -0500, Guy Debord wrote: > Matt et al, > > All of my models -- such as TMP::Model::Foo -- created by the helper > -- use DBIC::Schema as a base class and are configured to use > TMP::Schema as their schema_class. Yes. You only need *one* model per DBIC::Schema!

Re: [Catalyst] strange namespace behavior for dbic : schema

2007-06-07 Thread Guy Debord
Matt et al, All of my models -- such as TMP::Model::Foo -- created by the helper -- use DBIC::Schema as a base class and are configured to use TMP::Schema as their schema_class. Each model that I created through the helper ends up creating classes in the namespace, one for each table in my datab

Re: [Catalyst] DNS as a Catalyst Model

2007-06-07 Thread mla
Leo Cacciari wrote: Il giorno gio, 07/06/2007 alle 13.10 -0700, mla ha scritto: What's the benefit of making this a *Catalyst* model? Doesn't that couple your DNS module to your web framework? Why not just write a DNS module with all your dynamic update methods and then add a wrapper to use it

Re: [Catalyst] DNS as a Catalyst Model

2007-06-07 Thread Leo Cacciari
Il giorno gio, 07/06/2007 alle 13.10 -0700, mla ha scritto: > What's the benefit of making this a *Catalyst* model? Doesn't that > couple your DNS module to your web framework? > > Why not just write a DNS module with all your dynamic update methods > and then add a wrapper to use it as a Catalyst

Re: [Catalyst] DNS as a Catalyst Model

2007-06-07 Thread mla
Leo Cacciari wrote: I'm planing to develop a Catalyst::Model::DNS, allowing Catalyst applications to access (and update through dynamic queries) a Domain Name Service. What's the benefit of making this a *Catalyst* model? Doesn't that couple your DNS module to your web framework? Why not just

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

2007-06-07 Thread mla
Matt S Trout wrote: On Thu, Jun 07, 2007 at 03:55:16AM -0700, Jonathan Swartz wrote: mia wrote: Matt S Trout wrote: On Wed, Jun 06, 2007 at 02:18:33PM -0700, mla wrote: Assuming I'm not using threads, how would I hurt myself by subclassing Catalyst and supplying a MyApp->context that returns

Re: [Catalyst] Mapping another site to a subset of a Catalyst application

2007-06-07 Thread Brian Kirkbride
Brian Kirkbride wrote: Hello all, I've got an Catalyst webapp that has several areas: /admin/... /manage/... /client/... All of these are accessible from one site: mysite.com/admin mysite.com/manage mysite.com/client Now, here's the tricky part. I'd really like to have a proxy or URL-rewrit

Re: [Catalyst] 2 Catalyst applications on the same server

2007-06-07 Thread Matt S Trout
On Thu, Jun 07, 2007 at 08:46:16PM +0300, Octavian Rasnita wrote: > If I try starting apache directly with: > > httpd -k start -n apache2.2 > > ...it doesn't display any error message. I see that it doesn't start when I > try to use this command again and I see that it doesn't complain that a >

Re: [Catalyst] 2 Catalyst applications on the same server

2007-06-07 Thread Octavian Rasnita
From: "Matt S Trout" <[EMAIL PROTECTED]> In httpd.conf I have: LoadFile d:/usr/bin/perl58.dll LoadModule perl_module modules/mod_perl.so Include e:/web/MyApp1/include/httpd.txt Include e:/web/MyApp2/include/httpd.txt Do you have a NameVirtualHost directive? Yes I have, and the applications

Re: [Catalyst] strange namespace behavior for dbic : schema

2007-06-07 Thread Matt S Trout
On Thu, Jun 07, 2007 at 11:35:00AM -0500, Guy Debord wrote: > Using the helpers, I created a Model Bar > > tmp_server lists all of its classes and instances like such... > > | TMP::Model::Bar | instance | > | TMP::Model::Bar::Bar

Re: [Catalyst] 2 Catalyst applications on the same server

2007-06-07 Thread Matt S Trout
On Thu, Jun 07, 2007 at 06:55:40PM +0300, Octavian Rasnita wrote: > Hi, > > I am trying to use 2 Catalyst applications on the same web server, using > mod_perl. > > The problem is that I can run only one of them, no matter which one. If I > put them both to run, the web server doesn't want to s

[Catalyst] Re: Project Opportunity

2007-06-07 Thread A. Pagaltzis
* Matt S Trout <[EMAIL PROTECTED]> [2007-06-07 16:10]: > And mine (mutt) lets you hit 'r', 'n', enter to reply to the > original poster even with reply-to munging on. You can also say `subscribe [EMAIL PROTECTED] in your .muttrc, following which you can use “L” to reply to the list and “r” to repl

[Catalyst] strange namespace behavior for dbic : schema

2007-06-07 Thread Guy Debord
Using the helpers, I created a Model Bar tmp_server lists all of its classes and instances like such... | TMP::Model::Bar | instance | | TMP::Model::Bar::Bar | class| | TMP::Model::Bar::HeHe | c

Re: [Catalyst] 2 Catalyst applications on the same server

2007-06-07 Thread Octavian Rasnita
From: "Peter Flanigan" <[EMAIL PROTECTED]> Octavian Rasnita wrote: They cannot both listen on the same address and port Both virtualhosts have the same IP and port, but they use a different server name. I also have another virtualhost that listens to this IP and port, but it doesn't use

Re: [Catalyst] 2 Catalyst applications on the same server

2007-06-07 Thread Kyncho Pehotinec
Peter Flanigan wrote: > Octavian Rasnita wrote: > >> >> >> > They cannot both listen on the same address and port > As far as I can see these are virtual hosts and MyAppX run through a perl handler ... there's no problem with such kind of setup, perhaps Octavian is missing a 'NamedVitua

Re: [Catalyst] 2 Catalyst applications on the same server

2007-06-07 Thread Peter Flanigan
Octavian Rasnita wrote: > > They cannot both listen on the same address and port ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.or

[Catalyst] 2 Catalyst applications on the same server

2007-06-07 Thread Octavian Rasnita
Hi, I am trying to use 2 Catalyst applications on the same web server, using mod_perl. The problem is that I can run only one of them, no matter which one. If I put them both to run, the web server doesn't want to start, and it doesn't write any error in the error log. I think there might

Re: [Catalyst] Project Opportunity

2007-06-07 Thread Leo Cacciari
Il giorno gio, 07/06/2007 alle 15.00 +0100, Matt S Trout ha scritto: > On Thu, Jun 07, 2007 at 10:43:59AM +0200, Leo Cacciari wrote: > > Sorry for the post to the list I truly hate Reply-To header My > > mail reader has a 'reply to all' butto just for replying to mailing > > lists... Well,

Re: [Catalyst] Project Opportunity

2007-06-07 Thread Matt S Trout
On Thu, Jun 07, 2007 at 10:43:59AM +0200, Leo Cacciari wrote: > Sorry for the post to the list I truly hate Reply-To header My > mail reader has a 'reply to all' butto just for replying to mailing > lists... Well, I'll be more attentive in the future... And mine (mutt) lets you hit 'r', 'n

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

2007-06-07 Thread Matt S Trout
On Thu, Jun 07, 2007 at 03:55:16AM -0700, Jonathan Swartz wrote: > mia wrote: > >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 Cataly

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

2007-06-07 Thread Matt S Trout
On Wed, Jun 06, 2007 at 05:22:43PM -0700, mla wrote: > Assuming I'm not using threads, how would I hurt myself by > subclassing Catalyst and supplying a MyApp->context that returns > the current catalyst context? If you think magic globals are a good thing, I have a PHP interpreter to sell you. -

Re: [Catalyst] multiple schemas based on login

2007-06-07 Thread James R. Leu
I do something very similar. Here is the piece of code you need to get you going (I originally got my example from the list back in Feb or Mar): package MyApp::Model::FooDB; use base 'Catalyst::Model::DBIC::Schema'; sub ACCEPT_CONTEXT { my $self = shift; my $c = shift; my $schema =

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

2007-06-07 Thread Jonathan Swartz
mia wrote: >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->req

Re: [Catalyst] DNS as a Catalyst Model

2007-06-07 Thread Jonathan Swartz
Sorry, wrong subject...reposting... On Jun 7, 2007, at 3:53 AM, Jonathan Swartz wrote: mia wrote: >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

Re: [Catalyst] DNS as a Catalyst Model

2007-06-07 Thread Jonathan Swartz
mia wrote: >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->req

Re: [Catalyst] DNS as a Catalyst Model

2007-06-07 Thread Buchan Milne
On Wednesday, 6 June 2007, Leo Cacciari wrote: > I'm planing to develop a Catalyst::Model::DNS, allowing Catalyst > applications to access (and update through dynamic queries) a Domain > Name Service. I am working on a Catalyst app that also needs to provision DNS records ... but I am doing this

Re: [Catalyst] Project Opportunity

2007-06-07 Thread Leo Cacciari
Sorry for the post to the list I truly hate Reply-To header My mail reader has a 'reply to all' butto just for replying to mailing lists... Well, I'll be more attentive in the future... -- Leo signature.asc Description: Questa è una parte del messaggio firmata digitalmente ___

Re: [Catalyst] Project Opportunity

2007-06-07 Thread Leo Cacciari
Il giorno mer, 06/06/2007 alle 16.45 -0400, Jmax ha scritto: > Greetings Catalyst Developers, > > I have been working with a friend of mine on a website of his, which has > quite a bit of traffic, and a large community. We are in need of a > second developer, and are hoping that one of you would

Re: [Catalyst] Project Opportunity

2007-06-07 Thread Zbigniew Lukasiak
Just out of curiosity - are you going to use MojoMojo as base for the wiki part? -- Zbyszek On 6/6/07, Jmax <[EMAIL PROTECTED]> wrote: Greetings Catalyst Developers, I have been working with a friend of mine on a website of his, which has quite a bit of traffic, and a large community. We are