a callbacks implementation idea

2005-11-03 Thread David Nicol
'connect.cached.new' = [\pre, \post] syntax so that I could do If I understand correctly, the QPSMTPD people have just implemented self-registering callbacks in modules by standardizing the names of the callbacks and letting package introspection find them all. The names are hook_* where * is

Re: Status of Callbacks

2005-11-03 Thread Tim Bunce
On Wed, Nov 02, 2005 at 03:34:14PM -0800, David Wheeler wrote: On Nov 2, 2005, at 2:59 PM, Tim Bunce wrote: I've an assortments of changes to checkin prior to the next release, but docs for Callbacks isn't part of them. Patches most welcome. Okay. I've been rather busy for a while[1]

Re: a callbacks implementation idea

2005-11-03 Thread Tim Bunce
Are you volunteering? Tim. On Thu, Nov 03, 2005 at 01:24:21PM -0600, David Nicol wrote: 'connect.cached.new' = [\pre, \post] syntax so that I could do If I understand correctly, the QPSMTPD people have just implemented self-registering callbacks in modules by standardizing the names of

Re: Status of Callbacks

2005-11-03 Thread David Wheeler
On Nov 3, 2005, at 2:13 PM, Tim Bunce wrote: Because the aggregates don't persist, I need to create them for every database handle. Since I run persistent apps (with mod_perl), it's best for me to do it the first time I connect to the database. Since I use connect_cached(), It's hard to know

Re: a callbacks implementation idea

2005-11-03 Thread David Nicol
I am _so_ busy. package CBI::callbacks; sub import{ my $caller = caller(); while(my($name,$thingy) = each %{${caller}::}){ $name =~ /hook_(.+)/ or next; ... }; }; On 11/3/05, Tim Bunce [EMAIL PROTECTED] wrote: Are you volunteering? Tim. On Thu, Nov 03, 2005

callback::hook on CPAN

2005-11-03 Thread David Nicol
enjoy -- David L Nicol A room without books is perfect for watching television