--- loncom/homework/structuretags.pm 2004/12/03 21:54:46 1.274 +++ loncom/homework/structuretags.pm 2004/12/10 17:50:30 1.275 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.274 2004/12/03 21:54:46 albertel Exp $ +# $Id: structuretags.pm,v 1.275 2004/12/10 17:50:30 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1127,6 +1127,10 @@ sub start_part { if ($1 ne '0') {$allow_print_points=1;} } } + my $maxtries = &Apache::lonnet::EXT("resource.$id.maxtries"); + if (defined($maxtries) && $maxtries < 0) { + $allow_print_points=0; + } if (($Apache::lonhomework::type eq 'exam') && ($allow_print_points)) { $result .= '\fbox{\textit{'.$weight.' pt}}';} } elsif ($target eq 'web') { $result.='';