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

Re: [cgiapp] :StartRunmode


On 7/14/05, Thilo Planz <suppressed> wrote:
> > I have another question for you about the plugin.  I noticed in the
> > current version, if I put the use
> > CGI::Application::Plugin::AutoRunmode in my base class, I don't
> > automatically have the ability to use the Runmode attributes in my
> > subclasses, and I have to add the 'use' statement again.
> 
> That is weird, it is supposed to work and I have cases like that in the
> test suite that do work.
> 
> Are you using "use base" or some @ISA magic that probably gets executed
> too late (outside of a BEGIN block) ?

It looks like you need to use the AutoRunmode plugin after the use
base qw(CGI::Application) statement.  I guess that makes sense, since
AutoRunmode tries to register a callback during the import, so
CGI::Application will need to be loaded at that time for it to work.

So it was a silly mistake on my part.  Thanks for that.

Cheers,

Cees

---------------------------------------------------------------------
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.