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

banghart lon-capa-cvs@mail.lon-capa.org
Mon, 12 Jun 2006 00:34:46 -0000


banghart		Sun Jun 11 20:34:46 2006 EDT

  Modified files:              
    /loncom/homework	grades.pm 
  Log:
  	Mark handback file as readonly.
  
  
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.359 loncom/homework/grades.pm:1.360
--- loncom/homework/grades.pm:1.359	Tue May 30 08:45:36 2006
+++ loncom/homework/grades.pm	Sun Jun 11 20:34:45 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Grading handler
 #
-# $Id: grades.pm,v 1.359 2006/05/30 12:45:36 www Exp $
+# $Id: grades.pm,v 1.360 2006/06/12 00:34:45 banghart Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2458,6 +2458,10 @@
                         $request->print('<font color="red"> An errror occured ('.$result.
                         ') while trying to upload '.$newflg.'_'.$part_resp.'_returndoc'.$file_counter.'</font><br />');
                     } else {
+                        # mark the file as read only
+                        my @files = ($save_file_name);
+                        my @what = ($symb,'handback');
+                        &Apache::lonnet::mark_as_readonly($domain,$stuname,\@files,\@what);
                         my $subject = "File Handed Back by Instructor ";
                         my $message = "A file has been returned that was originally submitted in reponse to: <br />";
                         $message .= "<strong>".&Apache::lonnet::gettitle($symb)."</strong><br />";