Revision history for Perl extension Maypole
+1.3 Fri Mar 26 19:16:33 GMT 2004
+ - Fix serious order/CDBI::Page interaction bug.
+ - Die if model/view class can't be compiled.
+
1.2 Thu Mar 25 12:35:21 GMT 2004
- Ensure safety when dereferencing any ->objects
- Support for the "frontpage" template
# http://module-build.sourceforge.net/META-spec.html
#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX#
name: Maypole
-version: 1.2
+version: 1.3
version_from: lib/Maypole.pm
installdirs: site
requires:
use UNIVERSAL::require;
use strict;
use warnings;
-our $VERSION = "1.2";
+our $VERSION = "1.3";
__PACKAGE__->mk_classdata($_) for qw( config init_done view_object );
__PACKAGE__->mk_accessors ( qw( ar params query objects model_class
args action template ));
my $config = $calling_class->config;
$config->{model} ||= "Maypole::Model::CDBI";
$config->{model}->require;
+ die "Couldn't load the model class $config->{model}: $@" if $@;
$config->{model}->setup_database($config, $calling_class, @_);
for my $subclass (@{$config->{classes}}) {
no strict 'refs';
my $config = $class->config;
$config->{view} ||= "Maypole::View::TT";
$config->{view}->require;
+ die "Couldn't load the view class $config->{view}: $@" if $@;
$config->{display_tables} ||= [ @{$class->config->{tables}} ];
$class->view_object($class->config->{view}->new);
$class->init_done(1);