version 1.37, 2002/10/16 14:48:45
|
version 1.43, 2003/01/31 22:34:38
|
Line 218 sub DownloadCourseInformation {
|
Line 218 sub DownloadCourseInformation {
|
$courseID.'.db', |
$courseID.'.db', |
$Apache::lonnet::perlvar{'lonUsersDir'}); |
$Apache::lonnet::perlvar{'lonUsersDir'}); |
|
|
if($lastDownloadTime >= $modifiedTime && $modifiedTime >= 0) { |
if($lastDownloadTime ne 'Not downloaded' && |
|
$lastDownloadTime >= $modifiedTime && $modifiedTime >= 0) { |
# Data is not gathered so return UpToDate as true. This |
# Data is not gathered so return UpToDate as true. This |
# will be interpreted in ProcessClasslist |
# will be interpreted in ProcessClasslist |
$courseData{$namedata.':lastDownloadTime'}=time; |
$courseData{$namedata.':lastDownloadTime'}=time; |
Line 310 sub ProcessTopResourceMap {
|
Line 311 sub ProcessTopResourceMap {
|
} |
} |
|
|
my $oldkeys; |
my $oldkeys; |
|
delete $cache->{'OptionResponses'}; |
if(defined($cache->{'ResourceKeys'})) { |
if(defined($cache->{'ResourceKeys'})) { |
$oldkeys = $cache->{'ResourceKeys'}; |
$oldkeys = $cache->{'ResourceKeys'}; |
foreach (split(':::', $cache->{'ResourceKeys'})) { |
foreach (split(':::', $cache->{'ResourceKeys'})) { |
Line 487 sub ProcessTopResourceMap {
|
Line 489 sub ProcessTopResourceMap {
|
} |
} |
my @titleLength=split(//,$cache->{$currentSequence. |
my @titleLength=split(//,$cache->{$currentSequence. |
':title'}); |
':title'}); |
# $extra is 3 for problems correct and 3 for space |
# $extra is 5 for problems correct and 3 for space |
# between problems correct and problem output |
# between problems correct and problem output |
my $extra = 6; |
my $extra = 8; |
if(($totalProblems + $extra) > (scalar @titleLength)) { |
if(($totalProblems + $extra) > (scalar @titleLength)) { |
$cache->{$currentSequence.':columnWidth'}= |
$cache->{$currentSequence.':columnWidth'}= |
$totalProblems + $extra; |
$totalProblems + $extra; |
Line 518 sub ProcessTopResourceMap {
|
Line 520 sub ProcessTopResourceMap {
|
# big problem, need to handle. Next is probably wrong |
# big problem, need to handle. Next is probably wrong |
my $errorMessage = 'Big problem in '; |
my $errorMessage = 'Big problem in '; |
$errorMessage .= 'loncoursedata::ProcessTopLevelMap.'; |
$errorMessage .= 'loncoursedata::ProcessTopLevelMap.'; |
$errorMessage .= ' bighash to_$currentResourceID not defined!'; |
$errorMessage .= " bighash to_$currentResourceID not defined!"; |
&Apache::lonnet::logthis($errorMessage); |
&Apache::lonnet::logthis($errorMessage); |
last; |
last; |
} |
} |
Line 1179 sub DownloadStudentCourseData {
|
Line 1181 sub DownloadStudentCourseData {
|
my $WhatIWant; |
my $WhatIWant; |
$WhatIWant = '(^version:|'; |
$WhatIWant = '(^version:|'; |
$WhatIWant .= '^\d+:.+?:(resource\.\d+\.'; |
$WhatIWant .= '^\d+:.+?:(resource\.\d+\.'; |
$WhatIWant .= '(solved|tries|previous|awarded|(\d+\.submission))\s*$'; |
$WhatIWant .= '(solved|tries|previous|awarded|(\d+\.submission))\s*$';#' |
$WhatIWant .= '|timestamp)'; |
$WhatIWant .= '|timestamp)'; |
$WhatIWant .= ')'; |
$WhatIWant .= ')'; |
# $WhatIWant = '.'; |
# $WhatIWant = '.'; |
Line 1438 sub get_classlist {
|
Line 1440 sub get_classlist {
|
if ($tmp =~/^(con_lost|error|no_such_host)/i) { |
if ($tmp =~/^(con_lost|error|no_such_host)/i) { |
$fullname = 'not available'; |
$fullname = 'not available'; |
$id = 'not available'; |
$id = 'not available'; |
|
&Apache::lonnet::logthis('unable to retrieve environment '. |
|
'for '.$sname.':'.$sdom); |
} else { |
} else { |
$fullname = &ProcessFullName(@info{qw/lastname generation |
$fullname = &ProcessFullName(@info{qw/lastname generation |
firstname middlename/}); |
firstname middlename/}); |