--- loncom/lonnet/perl/lonnet.pm 2001/03/19 22:27:06 1.109 +++ loncom/lonnet/perl/lonnet.pm 2001/03/20 21:33:37 1.110 @@ -91,7 +91,7 @@ # 02/27/01 Scott Harrison # 3/2 Gerd Kortemeyer # 3/15 Scott Harrison -# 3/19 Gerd Kortemeyer +# 3/19,3/20 Gerd Kortemeyer package Apache::lonnet; @@ -628,6 +628,23 @@ sub log { return critical("log:$dom:$nam:$what",$hom); } +# --------------------------------------------- Set Expire Date for Spreadsheet + +sub expirespread { + my ($uname,$udom,$stype,$usymb)=@_; + my $cid=$ENV{'request.course.id'}; + if ($cid) { + my $now=time; + my $key=$uname.':'.$udom.':'.$stype.':'.$usymb; + return &reply('put:'.$ENV{'course.'.$cid.'.domain'}.':'. + $ENV{'course.'.$cid.'.num'}. + ':nohist_expirationdates:'. + &escape($key).'='.$now, + $ENV{'course.'.$cid.'.home'}) + } + return 'ok'; +} + # ----------------------------------------------------- Devalidate Spreadsheets sub devalidate {