version 1.712, 2014/01/15 14:46:26
|
version 1.715, 2014/01/29 16:31:20
|
Line 1944 sub submission {
|
Line 1944 sub submission {
|
if (!&canview($usec)) { |
if (!&canview($usec)) { |
$request->print( |
$request->print( |
'<span class="LC_warning">'. |
'<span class="LC_warning">'. |
&mt('Unable to view requested student.'. |
&mt('Unable to view requested student.'). |
' '.&mt('([_1] in section [_2] in course id [_3])', |
' '.&mt('([_1] in section [_2] in course id [_3])', |
$uname.':'.$udom,$usec,$env{'request.course.id'}). |
$uname.':'.$udom,$usec,$env{'request.course.id'}). |
'</span>'); |
'</span>'); |
Line 2551 sub show_previous_task_version {
|
Line 2551 sub show_previous_task_version {
|
if (!&canview($usec)) { |
if (!&canview($usec)) { |
$request->print( |
$request->print( |
'<span class="LC_warning">'. |
'<span class="LC_warning">'. |
&mt('Unable to view previous version for requested student.'. |
&mt('Unable to view previous version for requested student.'). |
' '.&mt('([_1] in section [_2] in course id [_3])', |
' '.&mt('([_1] in section [_2] in course id [_3])', |
$uname.':'.$udom,$usec,$env{'request.course.id'}). |
$uname.':'.$udom,$usec,$env{'request.course.id'}). |
'</span>'); |
'</span>'); |
Line 7589 sub prompt_for_corrections {
|
Line 7589 sub prompt_for_corrections {
|
} |
} |
} else { |
} else { |
$responsenum = $question-1; |
$responsenum = $question-1; |
$first = $first_bubble_line{$responsenum} + 1; |
$first = $first_bubble_line{$responsenum}; |
} |
} |
$current_line = $first + 1 ; |
$current_line = $first + 1 ; |
my @subans = split(/,/,$subdivided_bubble_lines{$responsenum}); |
my @subans = split(/,/,$subdivided_bubble_lines{$responsenum}); |
Line 10362 described at http://www.lon-capa.org.
|
Line 10362 described at http://www.lon-capa.org.
|
=head1 OVERVIEW |
=head1 OVERVIEW |
|
|
Do an ssi with retries: |
Do an ssi with retries: |
While I'd love to factor out this with the vesrion in lonprintout, |
While I'd love to factor out this with the version in lonprintout, |
that would either require a data coupling between modules, which I refuse to perpetuate (there's quite enough of that already), or would require the invention of another infrastructure |
that would either require a data coupling between modules, which I refuse to perpetuate (there's quite enough of that already), or would require the invention of another infrastructure |
I'm not quite ready to invent (e.g. an ssi_with_retry object). |
I'm not quite ready to invent (e.g. an ssi_with_retry object). |
|
|
Line 10373 At least the logic that drives this has
|
Line 10373 At least the logic that drives this has
|
ssi_with_retries - Does the server side include of a resource. |
ssi_with_retries - Does the server side include of a resource. |
if the ssi call returns an error we'll retry it up to |
if the ssi call returns an error we'll retry it up to |
the number of times requested by the caller. |
the number of times requested by the caller. |
If we still have a proble, no text is appended to the |
If we still have a problem, no text is appended to the |
output and we set some global variables. |
output and we set some global variables. |
to indicate to the caller an SSI error occurred. |
to indicate to the caller an SSI error occurred. |
All of this is supposed to deal with the issues described |
All of this is supposed to deal with the issues described |
in LonCAPA BZ 5631 see: |
in LON-CAPA BZ 5631 see: |
http://bugs.lon-capa.org/show_bug.cgi?id=5631 |
http://bugs.lon-capa.org/show_bug.cgi?id=5631 |
by informing the user that this happened. |
by informing the user that this happened. |
|
|