X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2FMaypole.pm;h=7ab6cb31f6d058146f4fc5ba518f8652aec98625;hb=565851cab66df8310b76a59e0b5bf462edf90feb;hp=b4e1d623ac3d2276127dd9fb16ef5c00adc2b3e2;hpb=3447ae72797ea189b6613d2c4abf9be7afe5537a;p=maypole.git diff --git a/lib/Maypole.pm b/lib/Maypole.pm index b4e1d62..7ab6cb3 100644 --- a/lib/Maypole.pm +++ b/lib/Maypole.pm @@ -130,13 +130,15 @@ sub is_applicable { $config->ok_tables || $config->ok_tables( $config->display_tables ); $config->ok_tables( { map { $_ => 1 } @{ $config->ok_tables } } ) if ref $config->ok_tables eq "ARRAY"; - warn "We don't have that table ($self->{table})" + warn "We don't have that table ($self->{table}).\n" + . "Available tables are: " + . join( ",", @{ $config->{display_tables} } ) if $self->debug and not $config->ok_tables->{ $self->{table} }; return DECLINED() unless exists $config->ok_tables->{ $self->{table} }; # Is it public? - return DECLINED unless $r->model_class->is_public( $r->{action} ); + return DECLINED unless $self->model_class->is_public( $self->{action} ); return OK(); } @@ -171,6 +173,8 @@ sub authenticate { return OK } sub exception { return ERROR } +sub rewrite_path { } + sub parse_path { my $self = shift; $self->{path} ||= "frontpage"; @@ -404,7 +408,7 @@ Simon Cozens, C =head1 THANK YOU -Danijel Milicevic, Jesse Scheidlower, Jody Belka, Marcus Ramberg, +Danijel Milicevic, Jesse Sheidlower, Jody Belka, Marcus Ramberg, Mickael Joanne, Simon Flack, Veljko Vidovic and all the others who've helped.