--- loncom/interface/lonprintout.pm 2004/04/20 06:11:49 1.292
+++ loncom/interface/lonprintout.pm 2004/04/26 18:21:26 1.294
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Printout
#
-# $Id: lonprintout.pm,v 1.292 2004/04/20 06:11:49 albertel Exp $
+# $Id: lonprintout.pm,v 1.294 2004/04/26 18:21:26 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1222,7 +1222,7 @@ sub get_CODE {
srand($seed);
my $newcode;
while(1) {
- $newcode=int(rand($max));
+ $newcode=sprintf("%06d",int(rand($max)));
if (!exists($$all_codes{$newcode})) {
$$all_codes{$newcode}=1;
return &num_to_letters($newcode);
@@ -1583,6 +1583,7 @@ CHOOSE_STUDENTS
my @names=&Apache::lonnet::getkeys('CODEs',$cdom,$cnum);
my $namechoice='';
foreach my $name (@names) {
+ if ($name =~ /^error: 2 /) { next; }
$namechoice.=''.$name.'';
}
&Apache::lonxml::xmlparse($r, 'helper', <
-
How many Anonymous exams to print?
+ PAGESIZE
+
Number of anonymous assignments to print?
+
Names to store the CODEs under for later:
+
+
+ Reprint a set of saved CODEs:
+
+ $namechoice
+
$resource_selector