On Wed, May 26, 2004 at 09:38:12PM -0400, Cees Hek wrote:
> The main purpose is to allow for third party modules to get access to
> the hooks available in CGI::App without making those same hooks unusably
> by the developer planning to use this third party app. Currently, the
> hooks are a one shot deal (ie only one module can use the prerun_mode
> hook in the application). Of course a developer can call
> $self->SUPER::prerun_mode to pass the call up the chain, but that is not
> very user friendly, and prone to mistakes. ie a third party module
> author would have to state very clearly in the docs to 'remember to call
> $self->SUPER::prerun_mode if you decide to override the prerun_mode
> subroutine'.
Hi Cees,
This forwarding of an event is not necessary developer unfriendly. I
have experience with an environment (formerly known as Asymmetrix
Toolbook) in which event messages had to be explicitly forwarded. You
forget occasionally but the unexpected results are fairly obvious. As a
developer, you learn that if you want the event to be handled upstream,
then forward it.
At other times, it's rather convenient to capture the event not have it
forwarded up the chain. I'm indifferent about the basic philosophy
(automatic forwarding of events vs. manual forwarding) but would expect
to have a way to override whatever is the chosen default.
Also, you mentioned that you modelled the patch on mod_perl's bins. I'm
not familiar enough with these to know whether they allow multiple
handlers to handle an event. It seems that was one of the features I've
seen mentioned in regards to mp2. Is this chaining of an event a manual
or automatic process?
Regards,
William
--
Knowmad Services Inc.
http://www.knowmad.com
---------------------------------------------------------------------
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.