[LON-CAPA-cvs] cvs: loncom /interface printout.pl

raeburn raeburn at source.lon-capa.org
Mon Mar 18 17:33:09 EDT 2013


raeburn		Mon Mar 18 21:33:09 2013 EDT

  Modified files:              
    /loncom/interface	printout.pl 
  Log:
  - Standard LON-CAPA separator between username and domain is : not @.
  
  
Index: loncom/interface/printout.pl
diff -u loncom/interface/printout.pl:1.153 loncom/interface/printout.pl:1.154
--- loncom/interface/printout.pl:1.153	Thu Jan 31 15:09:23 2013
+++ loncom/interface/printout.pl	Mon Mar 18 21:33:08 2013
@@ -1,7 +1,7 @@
 #!/usr/bin/perl
 # CGI-script to run LaTeX, dvips, ps2ps, ps2pdf etc.
 #
-# $Id: printout.pl,v 1.153 2013/01/31 15:09:23 bisitz Exp $
+# $Id: printout.pl,v 1.154 2013/03/18 21:33:08 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -127,8 +127,8 @@
 
 	    # Todo: Convert badurl into a url from file path:
 
-	    my $subject  = "Error [$badurl] Print failed for $user".'@'.$domain;
-	    my $message .= "Print failed to render LaTeX for $user".'@'."$domain\n";
+	    my $subject  = "Error [$badurl] Print failed for $user".':'.$domain;
+	    my $message .= "Print failed to render LaTeX for $user".':'."$domain\n";
 	    $message    .= "  User was attempting to print: \n";
 	    foreach my $resource (split(/:/,$resources)) {
 		$message    .= "       $resource\n";
@@ -308,14 +308,14 @@
   my $name;
   my $name_range='';
 
-  # $name       -> Either user's full name or username at domain
+  # $name       -> Either user's full name or username:domain
   # $name_range -> Either user's last name or usrname.
 
   if ($tempo_array[3]) {
       $name=$tempo_array[3];
       ($name_range) = split(/,/,$name, 2);
   } else {
-      $name=$tempo_array[0].'@'.$tempo_array[1];
+      $name=$tempo_array[0].':'.$tempo_array[1];
       $name_range = $tempo_array[0];
   }
 
@@ -323,7 +323,7 @@
   # user is getting printed.
   #
 
-  if (($name ne "") && ($name ne '@') ) { # Could be printing codes...
+  if (($name ne "") && ($name ne ':') ) { # Could be printing codes...
       $link_text='<b>'.$name.'</b>';
       $status_statement.=$name;
   }
@@ -339,10 +339,10 @@
 	  my ($lastname) = split(/,/, $name,2);
 	  $name_range .= "-".$lastname;
       } else {
-	  $name=$tempo_array[0].'@'.$tempo_array[1];
+	  $name=$tempo_array[0].':'.$tempo_array[1];
 	  $name_range .= '-'.$tempo_array[0];
       }
-      if (($name ne "") && ($name ne '@')) {
+      if (($name ne "") && ($name ne ':')) {
 	  $link_text.=' - <b>'.$name.'</b>';
 	  $status_statement.=' -  '.$name;
   




More information about the LON-CAPA-cvs mailing list