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

banghart lon-capa-cvs@mail.lon-capa.org
Mon, 01 Nov 2004 22:51:48 -0000


banghart		Mon Nov  1 17:51:48 2004 EDT

  Modified files:              
    /loncom/homework	essayresponse.pm 
  Log:
  	Save submitted file information to file_permissions .db file.
  	Probably still needs refinement!
  
  
Index: loncom/homework/essayresponse.pm
diff -u loncom/homework/essayresponse.pm:1.45 loncom/homework/essayresponse.pm:1.46
--- loncom/homework/essayresponse.pm:1.45	Sat Oct 30 19:59:00 2004
+++ loncom/homework/essayresponse.pm	Mon Nov  1 17:51:48 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # essay (ungraded) style responses
 #
-# $Id: essayresponse.pm,v 1.45 2004/10/30 23:59:00 banghart Exp $
+# $Id: essayresponse.pm,v 1.46 2004/11/01 22:51:48 banghart Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -147,7 +147,8 @@
 			&Apache::lonxml::whichuser();
                     foreach (@submitted_files) {
                         my $file = $_;
-                        $Apache::lonhomework::results{"resource.$domain.$crsid.$name.$file"}='true';
+			&Apache::lonnet::put('file_permissions',
+					 { $dsymb.$crsid => $file },$domain,$name);
                     }
                     $uploadedflag=1;
     	        }