Skip Menu |

This queue is for tickets about the Maypole CPAN distribution.

Report information
The Basics
Id: 14123
Status: resolved
Priority: 0/
Queue: Maypole

People
Owner: Nobody in particular
Requestors: dave [...] riverside-cms.co.uk
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: 2.11



Subject: -Init flag
My Maypole apps are boiling down to lots of config in httpd.conf (loaded by MP::P::Config::Apache), custom code in model classes, and anything else goes in a plugin. So the actual driver is just package My::App; use This; use That; use Maypole::Application qw( Config::Apache My::App Foo Bar -Setup ); __PACKAGE__->init; 1; It'd just be nice to swap the init call for an -Init flag. Something like elsif (/^\-Init$/) { $autoinit++; } in the foreach, and $caller->init() if $autosetup && $autoinit; after the $caller->setup() line. d.
[DAVEBAIRD - Thu Aug 11 19:13:56 2005]: Show quoted text
> My Maypole apps are boiling down to lots of config in httpd.conf > (loaded by MP::P::Config::Apache), custom code in model classes, and > anything else goes in a plugin. So the actual driver is just > > package My::App; > use This; > use That; > use Maypole::Application qw( Config::Apache My::App Foo Bar -Setup ); > __PACKAGE__->init; > 1; > > It'd just be nice to swap the init call for an -Init flag. > > Something like > > elsif (/^\-Init$/) { $autoinit++; } > > in the foreach, and > > $caller->init() if $autosetup && $autoinit; > > after the $caller->setup() line. > > d.
Implemented in revision 374