1.5 Mon Jun 21 14:36:54 BST 2004
- CLI mode correctly uses Constants module
- Template footers as well as headers (Markus Ramberg)
- - Fix problems on failed object create (Jesse Shiedlower)
+ - Fix problems on failed object create (Jesse Sheidlower)
- Fix related() to deal with latest version of Class::DBI (Markus)
- Add sample CSS to distribution
- Maypole::Model::CDBI::Plain, for those who already have a CDBI set
-See http://wiki.simon-cozens.org/?MaypoleToDo
-
+* Tests
+* Better Documentation and more complex examples
+* Make templates XHTML compliant
unless ($applicable == OK) {
# It's just a plain template
delete $r->{model_class};
- $r->{path} =~ s{/}{}; # De-absolutify
+ $r->{path} =~ s{/$}{}; # De-absolutify
$r->template($r->{path});
}
# We authenticate every request, needed for proper session management
=head1 THANK YOU
-Jesse Scheildlower, Jody Belka, Markus Ramberg, Mickael Joanne, Simon Flack and all the others who've helped.
+Jesse Scheidlower, Jody Belka, Markus Ramberg, Mickael Joanne, Simon Flack and all the others who've helped.
=head1 LICENSE
sub setup_database {
my ($self, $config, $namespace, $dsn, $u, $p, $opts) = @_;
+ $dsn ||= $config->{dsn};
+ $u ||= $config->{user};
+ $p ||= $config->{pass};
+ $opts ||= $config->{opts};
$config->{dsn} = $dsn;
$config->{loader} = Class::DBI::Loader->new(
namespace => $namespace,