[cgiapp] Re: C::A, CAP::LogDispatch, error_mode(), and more!

2005-03-02 Thread Mark Stosberg
Cees Hek wrote: With that you could easily write a signal handler. $SIG{__WARN__} = sub { MyApp-log-warn(shift) }; Is anyone using a construct like this? Any caveats? I've just been reading about all the 'gotchas' with using $SIG{__DIE__} handlers if you aren't careful. I found less

[cgiapp] Best practices for error logging notification? (Repost)

2005-03-02 Thread Mark Stosberg
(I tried to post this earlier today, but it didn't seem to go through for some reason. I apologize if it's a dupe for you. ) ### Hello, I'm interested in experimenting with getting notified more directly about application failures. Thanks to work by Cees Hek and Rob Kinyon, I'm using the

[cgiapp] Best practices for error logging notification?

2005-03-02 Thread Mark Stosberg
Hello, I'm interested in experimenting with getting notified more directly about application failures. Thanks to work by Cees Hek and Rob Kinyon, I'm using the LogDispatch plugin and error_mode() to help with this. In the process, I noticed a missing bit of documentation for error_mode():

Re: [cgiapp] Best practices for error logging notification? (Repost)

2005-03-02 Thread Cees Hek
On Wed, 2 Mar 2005 18:44:31 + (UTC), Mark Stosberg [EMAIL PROTECTED] wrote: What are the best practices for application error notification, especially by e-mail/ I have a fear of something going wrong that causes a flood of e-mail to be sent out, creating it's own problem. That is a good

[cgiapp] Class::DBI why is it so great?

2005-03-02 Thread mail
I have been playing around with Class::DBI to see why everyone loves it so much and I cannot figure it out. You have to set up your own database and tables. Then you have to tell the class about your table and it's structure. Then, you have to learn the class's new syntax for dealing with

Re: [cgiapp] Class::DBI why is it so great?

2005-03-02 Thread Jason Purdy
Well, I'm very new to CDBI, but I'll take a crack at it. The big bonus for me is that I can eliminate the SQL code from my Perl modules, so my code is purely business. Also, since it's object-oriented, I can do all kinds of neat things like: $person = My::CDBI::PeopleTable-retrieve( $person_id

Re: [cgiapp] Class::DBI why is it so great?

2005-03-02 Thread Michael Peters
[EMAIL PROTECTED] wrote: I have been playing around with Class::DBI to see why everyone loves it so much and I cannot figure it out. You have to set up your own database and tables. Then you have to tell the class about your table and it's structure. Then, you have to learn the class's new

Re: [cgiapp] Testing

2005-03-02 Thread David Scott
Joel, Check out these examples of testing. This code was written from studying the testing done by the CGI::Application release tests. Then expanded to test for an application. It gives you a view of testing CGI::apps, supporting classes and the screens.

[cgiapp] Autodiscovery of run modes using delegates

2005-03-02 Thread Thilo Planz
Hi all, here is another take on one of my favourite topics, the automatic discovery of run modes. Basically, I want to have CGI::App to look at my application instance and call a method of the same name as the requested run-mode. Because of the security problem inherent in this approach,