--- loncom/homework/grades.pm 2004/11/13 09:32:49 1.225 +++ loncom/homework/grades.pm 2004/11/23 14:19:32 1.231 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.225 2004/11/13 09:32:49 albertel Exp $ +# $Id: grades.pm,v 1.231 2004/11/23 14:19:32 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1670,10 +1670,17 @@ KEYWORDS $lastsubonly.='Part: '. $display_part.' ( ID '.$respid. ' )   '; - if ($record{"resource.$partid.$respid.uploadedurl"}) { - &Apache::lonnet::allowuploaded('/adm/grades', - $record{"resource.$partid.$respid.uploadedurl"}); - $lastsubonly.=' File uploaded by student Like all files provided by users, this file may contain virusses
'; + my $file_url; + if ($record{"resource.$partid.$respid.portfiles"}) { + $file_url = '/uploaded/'.$udom.'/'.$uname.'/portfolio'.$record{"resource.$partid.$respid.portfiles"}; + &Apache::lonnet::logthis("found a portfolio file".$record{"resource.$partid.$respid.portfiles"}); + &Apache::lonnet::logthis("uploaded URL file".$record{"resource.$partid.$respid.uploadedurl"}); + } else { + $file_url=$record{"resource.$partid.$respid.uploadedurl"}; + } + if ($file_url) { + &Apache::lonnet::allowuploaded('/adm/grades',$file_url); + $lastsubonly.=' File uploaded by student Like all files provided by users, this file may contain virusses
'; } $lastsubonly.='Submitted Answer: '. &cleanRecord($subval,$responsetype,$symb,$partid, @@ -3511,8 +3518,8 @@ sub scantron_selectphase { $result.= < +
- $default_form_data @@ -3549,8 +3556,8 @@ sub scantron_selectphase {
-
- + + SCANTRONFORM @@ -3606,8 +3613,8 @@ SCANTRONFORM } $r->print(< - -
+ + @@ -3624,14 +3631,13 @@ SCANTRONFORM
-
- + + SCANTRONFORM $r->print(< - $grading_menu_button SCANTRONFORM @@ -4631,6 +4637,10 @@ SCANTRONFORM $form{'CODE'}=''; } my $result=&Apache::lonnet::ssi($resource->src(),%form); + if ($result ne '') { + &Apache::lonnet::logthis("scantron grading error -> $result"); + &Apache::lonnet::logthis("scantron grading error info name $uname domain $udom course $ENV{'request.course.id'} url ".$resource->src()); + } if (&Apache::loncommon::connection_aborted($r)) { last; } } $completedstudents{$uname}={'line'=>$line};