[LON-CAPA-cvs] cvs: loncom /interface lonprintout.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Fri, 23 Dec 2005 08:02:25 -0000
albertel Fri Dec 23 03:02:25 2005 EDT
Modified files:
/loncom/interface lonprintout.pm
Log:
- the parsing of a <dropdown> with thousands of choices takes way to long, disabling for now
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.410 loncom/interface/lonprintout.pm:1.411
--- loncom/interface/lonprintout.pm:1.410 Mon Dec 19 18:27:28 2005
+++ loncom/interface/lonprintout.pm Fri Dec 23 03:02:24 2005
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Printout
#
-# $Id: lonprintout.pm,v 1.410 2005/12/19 23:27:28 foxr Exp $
+# $Id: lonprintout.pm,v 1.411 2005/12/23 08:02:24 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2176,11 +2176,9 @@
}
- my %all_codes = &Apache::lonnet::get('CODEs',
- \@names, $cdom,$cnum);
my %code_values;
my %codes_to_print;
- foreach my $key (keys(%all_codes)) {
+ foreach my $key (@names) {
%code_values = &Apache::grades::get_codes($key, $cdom, $cnum);
foreach my $key (keys(%code_values)) {
$codes_to_print{$key} = 1;
@@ -2239,12 +2237,6 @@
</validator>
</string>
<message></td></tr><tr><td></message>
- <message><b>Choose single code from list</b></message>
- <message></td><td></message>
- <dropdown variable="CODE_SELECTED_FROM_LIST" multichoice="0" allowempty="0">
- $code_selection
- </dropdown>
- <message></td></tr><tr><td></message>
<message><b>Names to store the CODEs under for later:</b></message>
<message></td><td></message>
<string variable="ANON_CODE_STORAGE_NAME" maxlength="50" size="20" />
@@ -2334,12 +2326,6 @@
</validator>
</string>
<message></td></tr><tr><td></message>
- <message><b>Choose single code from list</b></message>
- <message></td><td></message>
- <dropdown variable="CODE_SELECTED_FROM_LIST" multichoice="0" allowempty="0">
- $code_selection
- </dropdown>
- <message></td></tr><tr><td></message>
<message><b>Names to store the CODEs under for later:</b></message>
<message></td><td></message>
<string variable="ANON_CODE_STORAGE_NAME" maxlength="50" size="20" />