fetching objects
git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@278
48953598-375a-da11-a14b-
00016c27c3ee
- Fixed Apache::MVC version (Randal Schwartz)
- fixed template_args (Dave Howorth)
- New Maypole::Config documentation (Dave Howorth)
+ - Maypole::Model::Base::process() no more steals you the first
+ arg after fetching objects
2.03 Tue Oct 26 13:00:00 2004
- increased version number of Apache::MVC
$r->{template} = $method;
$r->objects( [] );
my $obj = $class->retrieve( $r->{args}->[0] );
- if ($obj) {
- $r->objects( [$obj] );
- shift @{ $r->{args} };
- }
+ $r->objects( [$obj] ) if $obj;
$class->$method( $r, $obj, @{ $r->{args} } );
}
sub do_edit { die "This is an abstract method" }
-
=item list
The C<list> method should fill C<< $r-> objects >> with all of the
=cut
-
sub list : Exported {
die "This is an abstract method";
}