- moved doc/*.pod to lib/Maypole/Manual
- added Maypole::Model::Base::is_public() to make it simple to overload
:Exported behavior
- - Added support for replacing use base qw/All My Modules/ with
+ - added support for replacing use base qw/All My Modules/ with
use Maypole::Application qw/Redirect AnotherPlugin/; note that this
will only triggers with parameters to import, to preserve backwards
compability.
+ - fixed search ordering in Maypole::Model::CDBI and parameter
+ handling in CGI::Maypole (Dave Slack)
1.7 Sat Jul 17 20:15:26 BST 2004
- Emergency release - we lost the "use Maypole::Constants" from
my (%vars) = $self->{cgi}->Vars;
while ( my ( $key, $value ) = each %vars ) {
my @values = split "\0", $value;
- $vars{$key} = @values == 1 ? $values[0] : \@values;
+ $vars{$key} = @values <= 1 ? $values[0] : \@values;
}
$self->{params} = {%vars};
$self->{query} = {%vars};
=head1 THANK YOU
-Danijel Milicevic, Jesse Sheidlower, Jody Belka, Marcus Ramberg,
+Danijel Milicevic, Dave Slack, Jesse Sheidlower, Jody Belka, Marcus Ramberg,
Mickael Joanne, Simon Flack, Veljko Vidovic and all the others who've
helped.
$self = $self->do_pager($r);
$r->objects(
[
- $self->search_where( \%values ),
- ( $order ? { order => $order } : () )
+ $self->search_where(
+ \%values, ( $order ? { order => $order } : () )
+ )
]
);
$r->{template_args}{search} = 1;
my %ok_columns = map { $_ => 1 } $self->columns;
if ( $order = $r->query->{order} and $ok_columns{$order} ) {
$order .= ( $r->query->{o2} eq "desc" && " DESC" );
- }
- $order;
}
+ $order;
+}
sub list : Exported {
my ( $self, $r ) = @_;
}
sub setup_database {
- my ($self, $config, $namespace, $dsn, $u, $p, $opts) = @_;
+ my ( $self, $config, $namespace, $dsn, $u, $p, $opts ) = @_;
$dsn ||= $config->dsn;
$u ||= $config->user;
$p ||= $config->pass;
$opts ||= $config->opts;
$config->dsn($dsn);
- $config->loader || $config->loader( Class::DBI::Loader->new(
- namespace => $namespace,
- dsn => $dsn,
- user => $u,
- password => $p,
- options => $opts,
- ) );
+ $config->loader || $config->loader(
+ Class::DBI::Loader->new(
+ namespace => $namespace,
+ dsn => $dsn,
+ user => $u,
+ password => $p,
+ options => $opts,
+ )
+ );
$config->{classes} = [ $config->{loader}->classes ];
$config->{tables} = [ $config->{loader}->tables ];
}