[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Thu, 15 Apr 2004 23:06:03 -0000
albertel Thu Apr 15 19:06:03 2004 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
- converting &critical('put:'.... to the more correct &cput()
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.486 loncom/lonnet/perl/lonnet.pm:1.487
--- loncom/lonnet/perl/lonnet.pm:1.486 Mon Apr 5 14:07:38 2004
+++ loncom/lonnet/perl/lonnet.pm Thu Apr 15 19:06:02 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.486 2004/04/05 18:07:38 www Exp $
+# $Id: lonnet.pm,v 1.487 2004/04/15 23:06:02 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -617,6 +617,7 @@
my ($udom,%ids)=@_;
my %servers=();
foreach (keys %ids) {
+ &cput('environment',{'id'=>$ids{$_}},$udom,$_);
my $uhom=&homeserver($_,$udom);
if ($uhom ne 'no_host') {
my $id=&escape($ids{$_});
@@ -627,7 +628,6 @@
} else {
$servers{$uhom}=$id.'='.$unam;
}
- &critical('put:'.$udom.':'.$unam.':environment:id='.$id,$uhom);
}
}
foreach (keys %servers) {
@@ -3307,9 +3307,10 @@
}
my $fullname = &Apache::loncoursedata::ProcessFullName($last,$gene,
$first,$middle);
- my $value=&escape($uname.':'.$udom).'='.
- &escape(join(':',$end,$start,$uid,$usec,$fullname,$type));
- my $reply=critical('put:'.$cdom.':'.$cnum.':classlist:'.$value,$chome);
+ my $reply=cput('classlist',
+ {"$uname:$udom" =>
+ join(':',$end,$start,$uid,$usec,$fullname,$type) },
+ $cdom,$cnum);
unless (($reply eq 'ok') || ($reply eq 'delayed')) {
return 'error: '.$reply;
}