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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 30 May 2003 21:20:20 -0000


albertel		Fri May 30 17:20:20 2003 EDT

  Modified files:              
    /loncom/homework	grades.pm 
  Log:
  - ->parts() returns what we want now
  
  
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.90 loncom/homework/grades.pm:1.91
--- loncom/homework/grades.pm:1.90	Fri May 30 16:57:40 2003
+++ loncom/homework/grades.pm	Fri May 30 17:20:20 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Grading handler
 #
-# $Id: grades.pm,v 1.90 2003/05/30 20:57:40 albertel Exp $
+# $Id: grades.pm,v 1.91 2003/05/30 21:20:20 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2659,8 +2659,7 @@
         if($curRes == $iterator->END_MAP) { $depth++; }
 
         if (ref($curRes) && $curRes->is_problem() && !$curRes->randomout) {
-	    my $parts = ['0',@{$curRes->parts()}];
-	    &APache::lonnet::logthis("parts ".join(':',@$parts));
+	    my $parts = $curRes->parts();
             my $title = $curRes->compTitle();
 	    my $symbx = $curRes->symb();
 	    $studentTable.='<tr bgcolor="#ffffe6"><td align="center" valign="top" >'.$question.
@@ -2792,8 +2791,7 @@
         if($curRes == $iterator->END_MAP) { $depth++; }
 
         if (ref($curRes) && $curRes->is_problem() && !$curRes->randomout) {
-	    my $parts = ['0',@{$curRes->parts()}];
-	    &APache::lonnet::logthis("parts ".join(':',@$parts));
+	    my $parts = $curRes->parts();
             my $title = $curRes->compTitle();
 	    my $symbx = $curRes->symb();
 	    $studentTable.='<tr bgcolor="#ffffe6"><td align="center" valign="top" >'.$question.