---------- Forwarded message ----------
From: David Baird <[EMAIL PROTECTED]>
Date: Dec 22, 2005 12:08 AM
Subject: Re: [Maypole-devel] Re: [Maypole] Weird behaviour overriding
default method.
To: Kieren Diment <[EMAIL PROTECTED]>


On 12/21/05, Kieren Diment <[EMAIL PROTECTED]> wrote:
>
> On 21 Dec 2005, at 13:18, Kieren Diment wrote:
>
> > OK, the do_edit override is also stuffed in a way I can't easily
> > resolve.
> >
> > debugging with warn Dumper statements in MM::CDBI it turns out
> > everything is going hunky dory, but we come to the following
> > section of do_edit:
> >
> > So overall, I think this is a case of CDBI::Loader not playing
> > nicely with Maypole's conception of what should be going on.
> >
>
> I'll work up some beerdb tests today, and put them up on rt.
>
> On the subject of maypole-install versus Class::DBI::Loader, my
> suspicion is that while Loader is neat, it makes things terribly
> difficult to debug because there are two levels of generated code.
> Using Plain would make it much easier to put debug hooks into the
> application to examine what's going on.
>
> On a similar note, getting maypole-install working properly would
> logically lead to deprecating the use of Loader, with an error
> message something like this appearing in the errror logs:
>
> "You are using Class::DBI Loader to generate some of the code for
> this application.  This is deprecated for maintenance/debugging
> reasons.  Use the script maypole-install (available in $bindir or via
> CPAN) to convert to CDBI::Plain which will make your application much
> easier to debug.  If you want to continue using CDBI::Loader, and you
> don't want your error log to fill up with this message, put $myapp-
>  >config->no_loader_warn(1) in the configuration section of your
> application."

I think that's a bit harsh. I'm quite a fan of CDBI::L.

d.


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Maypole-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maypole-devel

Reply via email to