X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2FMaypole.pm;h=7c9a8462eb7fb7237ef8713b0e7c34bcdbc88cf0;hb=3c53e0b127e3f369a252bec0e4580567f6e85f2a;hp=88110eabb487ea6d4e1e47693a5787b519a3bdcd;hpb=5f175450fcaf2b71f910742abc16ede9bfdc7103;p=maypole.git diff --git a/lib/Maypole.pm b/lib/Maypole.pm index 88110ea..7c9a846 100644 --- a/lib/Maypole.pm +++ b/lib/Maypole.pm @@ -1,13 +1,12 @@ package Maypole; use base qw(Class::Accessor::Fast Class::Data::Inheritable); -use attributes (); use UNIVERSAL::require; use strict; use warnings; use Maypole::Config; use Maypole::Constants; -our $VERSION = '2.0'; +our $VERSION = '2.01'; __PACKAGE__->mk_classdata($_) for qw( config init_done view_object ); __PACKAGE__->mk_accessors( @@ -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; @@ -135,7 +133,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?