This means that it will not be possible to mix the class-based :StartRunmode with the traditional instance-based $app->start_mode("new_name"). You will not be able to change the start_mode from an instance script.I think that is acceptable. I don't think it would be advisable to mix the styles in a single class. However, I think it is important that it work with a base-class that may use the standard CGI::App system, and a sub-class that uses the attributes method. From the sounds of it, it should work.
Yes, that should be fine.Not the other way around, though (at least not concerning the start runmode).
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 mysubclasses, 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) ?
Thilo
---------------------------------------------------------------------
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.