# http://module-build.sourceforge.net/META-spec.html
#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX#
name: Maypole
-version: 2.11_pre1
+version: 2.11_pre2
version_from: lib/Maypole.pm
installdirs: site
requires:
CGI::Untaint::email: 0
Class::DBI: 0.96
Class::DBI::AbstractSearch: 0
- Class::DBI::AsForm: 2.2
Class::DBI::FromCGI: 0.94
Class::DBI::Loader: 0.02
Class::DBI::Loader::Relationship: 0
$self->status(Maypole::Constants::OK()); # set the default
$self->__call_hook('start_request_hook');
return $self->status unless $self->status == Maypole::Constants::OK();
-
die "status undefined after start_request_hook()" unless defined
$self->status;
-
$self->get_session;
$self->get_user;
-
my $status = $self->handler_guts;
-
return $status unless $status == OK;
-
# TODO: require send_output to return a status code
$self->send_output;
-
return $status;
}
use base 'Exporter';
use constant OK => 0;
use constant DECLINED => -1;
-use constant ERROR => -1;
+use constant ERROR => 500;
our @EXPORT = qw(OK DECLINED ERROR);
our $VERSION = "1." . sprintf "%04d", q$Rev$ =~ /: (\d+)/;
is(\&OK, \&Maypole::Constants::OK, 'exports OK');
is(OK(), 0, 'OK correctly defined');
is(\&ERROR, \&Maypole::Constants::ERROR, 'exports ERROR');
-is(ERROR(), -1, 'ERROR correctly defined');
+is(ERROR(), 500, 'ERROR correctly defined');
is(\&DECLINED, \&Maypole::Constants::DECLINED, 'exports DECLINED');
is(DECLINED(), -1, 'DECLINED correctly defined');