--- trunk/lib/WebPAC/Input.pm 2005/12/18 22:16:44 289 +++ trunk/lib/WebPAC/Input.pm 2005/12/18 23:34:30 292 @@ -100,7 +100,9 @@ foreach my $subclass (qw/open_db fetch_rec init/) { my $n = $self->{module} . '::' . $subclass; if (! defined &{ $n }) { - $log->logwarn("missing implementation of $subclass"); + my $missing = "missing $subclass in $self->{module}"; + $log->logwarn($missing); + $self->{$subclass} = sub { warn "$missing\n" }; } else { $self->{$subclass} = \&{ $n }; } @@ -175,7 +177,7 @@ my $code_page = $arg->{'code_page'} || '852'; # store data in object - $self->{'code_page'} = $code_page; + $self->{'input_code_page'} = $code_page; foreach my $v (qw/path offset limit/) { $self->{$v} = $arg->{$v} if ($arg->{$v}); }