[LON-CAPA-cvs] cvs: loncom /homework grades.pm

banghart lon-capa-cvs@mail.lon-capa.org
Thu, 07 Apr 2005 22:48:08 -0000


banghart		Thu Apr  7 18:48:08 2005 EDT

  Modified files:              
    /loncom/homework	grades.pm 
  Log:
  	Removed debugging code.
  
  
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.259 loncom/homework/grades.pm:1.260
--- loncom/homework/grades.pm:1.259	Thu Apr  7 18:44:03 2005
+++ loncom/homework/grades.pm	Thu Apr  7 18:48:06 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Grading handler
 #
-# $Id: grades.pm,v 1.259 2005/04/07 22:44:03 banghart Exp $
+# $Id: grades.pm,v 1.260 2005/04/07 22:48:06 banghart Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2175,15 +2175,10 @@
 	# unless problem has been graded, set flag to version the submitted files
 	unless ($record{'resource.'.$new_part.'.solved'} =~ /^correct_/  || $record{'resource.'.$new_part.'.solved'} eq 'incorrect_by_override') {
 	    $v_flag = 1;
-	    &Apache::lonnet::logthis("v_flag is $v_flag");
-	    &Apache::lonnet::logthis('the record info is '.$record{'resource.'.$new_part.'.solved'});
-	} else {
-	    &Apache::lonnet::logthis('the record info is '.$record{'resource.'.$new_part.'.solved'});
 	}
     }
     if (scalar(keys(%newrecord)) > 0) {
         if ($v_flag) {
-            &Apache::lonnet::logthis("v_flag (setting stuff) is $v_flag");
             &Apache::lonnet::unmark_as_readonly($domain,$stuname,$symb.$env{'request.course.id'});
             &version_portfiles(\%record, \@parts_graded, $env{'request.course.id'}, $symb, $domain, $stuname);
         }
@@ -2204,7 +2199,6 @@
         #&Apache::lonnet::logthis("key is $key, value is $$record{$key}");
         my $new_portfiles;
         if ($key =~ /^resource\.($parts)\./ && $key =~ /\.portfiles$/) {
-            
             my @v_portfiles;
             my @portfiles = split(/,/,$$record{$key});
             foreach my $file (@portfiles) {
@@ -2236,9 +2230,6 @@
                    my $copy_result = &Apache::lonnet::finishuserfileupload($stuname,$domain,$home_server,'copy',
                                     '/portfolio'.$directory.$answer_file_parts[0].'.'.$version.'.'.$answer_file_parts[-1]);
                     push(@v_portfiles, $answer_file_parts[0].'.'.$version.'.'.$answer_file_parts[-1]);
-                    &Apache::lonnet::logthis('copy result is '.$copy_result);
-                    &Apache::lonnet::logthis('answer file is '.$answer_file.
-                        ' becomes '.$answer_file_parts[0].'.'.$version.'.'.$answer_file_parts[-1]);
                 }
             }
             $$record{$key} = join(/,/,@v_portfiles);