--- loncom/lonnet/perl/lonnet.pm 2005/04/25 17:18:15 1.629 +++ loncom/lonnet/perl/lonnet.pm 2005/05/02 23:34:43 1.631 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.629 2005/04/25 17:18:15 banghart Exp $ +# $Id: lonnet.pm,v 1.631 2005/05/02 23:34:43 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2614,8 +2614,23 @@ sub put { return &reply("put:$udomain:$uname:$namespace:$items",$uhome); } -# ---------------------------------------------------------- putstore interface - +# ------------------------------------------------------------ newput interface + +sub newput { + my ($namespace,$storehash,$udomain,$uname)=@_; + if (!$udomain) { $udomain=$env{'user.domain'}; } + if (!$uname) { $uname=$env{'user.name'}; } + my $uhome=&homeserver($uname,$udomain); + my $items=''; + foreach my $key (keys(%$storehash)) { + $items.=&escape($key).'='.&freeze_escape($$storehash{$key}).'&'; + } + $items=~s/\&$//; + return &reply("newput:$udomain:$uname:$namespace:$items",$uhome); +} + +# --------------------------------------------------------- putstore interface + sub putstore { my ($namespace,$storehash,$udomain,$uname)=@_; if (!$udomain) { $udomain=$env{'user.domain'}; } @@ -3898,7 +3913,6 @@ sub unmark_as_readonly { my @del_keys; if (ref($current_locks) eq "ARRAY"){ foreach my $locker (@{$current_locks}) { - &logthis("$$locker[0].$$locker[1] eq $symb_crs"); if ($$locker[0].$$locker[1] eq $symb_crs) { if (defined($file_name) && ($file_name ne $file)) { push(@new_locks, $what); @@ -5332,7 +5346,6 @@ sub receipt { sub getfile { my ($file) = @_; - &Apache::lonnet::logthis("file name is $file"); if ($file =~ m -^/*(uploaded|editupload)/-) { $file=&filelocation("",$file); } &repcopy($file); return &readfile($file); @@ -6180,7 +6193,10 @@ revokecustomrole($udom,$uname,$url,$role =item * -coursedescription($courseid) : course description +coursedescription($courseid) : returns a hash of information about the +specified course id, including all environment settings for the +course, the description of the course will be in the hash under the +key 'description' =item *