[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] Re: Preview Release available with callbacks code integrated


On Thu, 2005-01-13 at 15:06, William McKee wrote:
> > I look forward to hearing any feedback people have.
> 
> Considering that noone has replied, perhaps you'd be willing to give us
> a run-down on what your patch accomplishes. I haven't had an opportunity
> to get acquainted with the new hook code so can't really make out what
> you are adding to the mix.

There's 2 parts to it.

1.
A base class CGI::Application::Plugin for plugin authors to inherit from
that has a import() subroutine so authors don't have to directly
interact with Exporter and 2 static/class methods that are intended to
be overridden by plugin authors if the so choose.

2.
code added to the _start_ of the CGI::Application constructor new() that
calls the 2 new static/class methods for each module that has been
import()'d into the CGI::Application subclass. This allows the plugin
authors to new_hook() the application to create new callback locations
and add_callback() the application to register its own callbacks,
_before the init callback is called_.

-- 
Tony Fraser
suppressed
Sybaspace Internet Solutions                        System Administrator
phone: (250) 246-5368                                fax: (250) 246-5398


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.