]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/Maypole.pm
Removed obsolete comments, added comment about testing
[maypole.git] / lib / Maypole.pm
index e4c0f7318e8847c1d38504ec2df014dda1a38f5e..13af1719bbb4954de5a005e017072d8dce7caed1 100644 (file)
@@ -1,6 +1,5 @@
 package Maypole;
 use base qw(Class::Accessor::Fast Class::Data::Inheritable);
-use attributes ();
 use UNIVERSAL::require;
 use strict;
 use warnings;
@@ -85,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 ) {
@@ -134,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?