--- loncom/interface/spreadsheet/Spreadsheet.pm 2003/05/28 15:20:40 1.9 +++ loncom/interface/spreadsheet/Spreadsheet.pm 2003/05/29 13:39:38 1.11 @@ -1,5 +1,5 @@ # -# $Id: Spreadsheet.pm,v 1.9 2003/05/28 15:20:40 matthew Exp $ +# $Id: Spreadsheet.pm,v 1.11 2003/05/29 13:39:38 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -222,6 +222,11 @@ sub is_default { return 0; } +sub initialize { + # This method is here to remind you that it will be overridden by + # the descendents of the spreadsheet class. +} + sub initialize_spreadsheet_package { &load_spreadsheet_expirationdates(); &clear_spreadsheet_definition_cache(); @@ -816,7 +821,7 @@ sub expandnamed { push @matches,$parameter if ($parameter =~ /$expression/); } if (scalar(@matches) == 0) { - $returnvalue = 'unmatched parameter: '.$parameter; + $returnvalue = '""';#'"unmatched parameter: '.$parameter.'"'; } elsif (scalar(@matches) == 1) { # why do we not do this lookup here, instead of delaying it? $returnvalue = '$c{\''.$matches[0].'\'}'; @@ -832,7 +837,7 @@ sub expandnamed { } else { # There was a negative number of matches, which indicates # something is wrong with reality. Better warn the user. - $returnvalue = 'bizzare parameter: '.$parameter; + $returnvalue = '"bizzare parameter: '.$parameter.'"'; } return $returnvalue; }