Fixed some db_colinfo test bugs
Fixed typo in edit form template
Now uses Class::C3 in all Classes to simplify inheritence
+ Inheritence simpler and nicer and less hacked
add_model_superclass method moves @ISA munging into the model
+ new Class::DBI::DFV based model
2.11 Mon 31 July 2006
package Maypole::View::Base;
+use Class::C3;
use File::Spec;
use UNIVERSAL::moniker;
use strict;
package Maypole::View::TT;
+use Class::C3;
use base 'Maypole::View::Base';
use Maypole::Constants;
use Template;
# test Maypole::load_custom_class()
can_ok(BeerDB::Beer => 'fooey'); # defined in BeerDB::Beer
can_ok(BeerDB::Beer => 'floob'); # defined in BeerDB::Base
-is_deeply( [@BeerDB::Beer::ISA], [qw/Maypole::Model::CDBI Class::DBI::SQLite BeerDB::Base/] );
+
+is_deeply( [@BeerDB::Beer::ISA], [qw/Class::DBI::SQLite Maypole::Model::CDBI BeerDB::Base/] );
use DBI;
use lib 'examples'; # Where BeerDB should live
BEGIN {
- my $drh = eval { DBI->install_driver("mysql"); };
+ my $drh = eval {
+ DBI->install_driver("mysql");
+ my @databases = DBI->data_sources("mysql");
+ die "couldn't connect to mysql" unless (@databases);
+ };
+ warn "error : $@ \n" if ($@);
my $testcount = ($@) ? 45 : 65 ;
plan tests => $testcount;
}