[LON-CAPA-cvs] cvs: loncom / lond

raeburn raeburn@source.lon-capa.org
Sat, 22 Jan 2011 21:10:18 -0000


raeburn		Sat Jan 22 21:10:18 2011 EDT

  Modified files:              
    /loncom	lond 
  Log:
  - Pass optional coowners arg to &localenroll::new_course().
  
  
Index: loncom/lond
diff -u loncom/lond:1.469 loncom/lond:1.470
--- loncom/lond:1.469	Thu Jan 20 10:55:02 2011
+++ loncom/lond	Sat Jan 22 21:10:18 2011
@@ -2,7 +2,7 @@
 # The LearningOnline Network
 # lond "LON Daemon" Server (port "LOND" 5663)
 #
-# $Id: lond,v 1.469 2011/01/20 10:55:02 foxr Exp $
+# $Id: lond,v 1.470 2011/01/22 21:10:18 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -59,7 +59,7 @@
 my $status='';
 my $lastlog='';
 
-my $VERSION='$Revision: 1.469 $'; #' stupid emacs
+my $VERSION='$Revision: 1.470 $'; #' stupid emacs
 my $remoteVERSION;
 my $currenthostid="default";
 my $currentdomainid;
@@ -5008,10 +5008,11 @@
 sub validate_course_owner_handler {
     my ($cmd, $tail, $client)  = @_;
     my $userinput = "$cmd:$tail";
-    my ($inst_course_id, $owner, $cdom) = split(/:/, $tail);
-
+    my ($inst_course_id, $owner, $cdom, $coowners) = split(/:/, $tail);
+    
     $owner = &unescape($owner);
-    my $outcome = &localenroll::new_course($inst_course_id,$owner,$cdom);
+    $coowners = &unescape($coowners);
+    my $outcome = &localenroll::new_course($inst_course_id,$owner,$cdom,$coowners);
     &Reply($client, \$outcome, $userinput);