X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole.pm;h=13af1719bbb4954de5a005e017072d8dce7caed1;hb=48f5cd806ad785fbd8a77b93eebbf786fb73091f;hp=88110eabb487ea6d4e1e47693a5787b519a3bdcd;hpb=5f175450fcaf2b71f910742abc16ede9bfdc7103;p=maypole.git diff --git a/lib/Maypole.pm b/lib/Maypole.pm index 88110ea..13af171 100644 --- a/lib/Maypole.pm +++ b/lib/Maypole.pm @@ -1,6 +1,5 @@ package Maypole; use base qw(Class::Accessor::Fast Class::Data::Inheritable); -use attributes (); use UNIVERSAL::require; use strict; use warnings; @@ -63,7 +62,6 @@ sub handler { my $r = bless { config => $class->config }, $class; $r->get_request($req); $r->parse_location(); - warn "Request path: $r->{path}" if $r->debug; my $status = $r->handler_guts(); return $status unless $status == OK; $r->send_output; @@ -86,6 +84,7 @@ sub handler_guts { # We authenticate every request, needed for proper session management my $status; eval { $status = $r->call_authenticate }; + warn "No return value from authenticate" unless $status; if ( my $error = $@ ) { $status = $r->call_exception($error); if ( $status != OK ) { @@ -135,7 +134,8 @@ sub is_applicable { . "Available tables are: " . join( ",", @{ $config->{display_tables} } ) if $self->debug - and not $config->ok_tables->{ $self->{table} }; + and not $config->ok_tables->{ $self->{table} } + and $self->{action}; return DECLINED() unless exists $config->ok_tables->{ $self->{table} }; # Is it public?