[LON-CAPA-cvs] cvs: loncom /interface lonparmset.pm

matthew lon-capa-cvs@mail.lon-capa.org
Tue, 19 Nov 2002 19:26:35 -0000


matthew		Tue Nov 19 14:26:35 2002 EDT

  Modified files:              
    /loncom/interface	lonparmset.pm 
  Log:
  (stupid commit to document previous accidental commit)
  Now expire student spreadsheets when the spreadsheet_default_studentcalc
  parameter is set.  Cannot currently implement expiration of default
  assessment spreadsheet.
  
  
Index: loncom/interface/lonparmset.pm
diff -u loncom/interface/lonparmset.pm:1.77 loncom/interface/lonparmset.pm:1.78
--- loncom/interface/lonparmset.pm:1.77	Tue Nov 19 14:20:50 2002
+++ loncom/interface/lonparmset.pm	Tue Nov 19 14:26:35 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set parameters for assessments
 #
-# $Id: lonparmset.pm,v 1.77 2002/11/19 19:20:50 matthew Exp $
+# $Id: lonparmset.pm,v 1.78 2002/11/19 19:26:35 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1380,16 +1380,15 @@
             if ($name =~ /^spreadsheet_default_(classcalc|
                                                 studentcalc|
                                                 assesscalc)$/x) {
-                my $sheettype = $1;
+                my $sheettype = $1; 
                 if ($sheettype eq 'classcalc') {
                     # no need to do anything since viewing the sheet will
-                    # cause it to be updated.
+                    # cause it to be updated. 
                 } elsif ($sheettype eq 'studentcalc') {
                     # expire all the student spreadsheets
                     &Apache::lonnet::expirespread('','','studentcalc');
                 } else {
                     # expire all the default assessment spreadsheets
-                    # ACK!  No way to do this currently!!!!! Bummer!
                 }
             }