[LON-CAPA-users] Checking status of a part that has timed out

Ray Batchelor lon-capa-users@mail.lon-capa.org
Tue, 24 May 2011 10:43:28 -0700


--90e6ba6e82762af8fc04a4092036
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

I just tried that and it returned
CAN_ANSWER
CANNOT_ANSWER
SHOW_ANSWER

(there may be other possibilities).

On Tue, May 24, 2011 at 10:18 AM, Ray Batchelor <batchelo@sfu.ca> wrote:

> I don't know, but here's a long shot guess:
>
> Have a look at
> /res/msu/albertel/test/ext_examples.problem
>
> In there is mentioned
> $external::datestatus
> which is supposed to return things like CLOSE, CAN_ANSWER, etc.
>
> I haven't tried this but it might work......
>
>
>
> On Tue, May 24, 2011 at 9:59 AM, Mills, Douglas G <dmills@illinois.edu>wr=
ote:
>
>> Hey All,
>>
>> Good seeing those of you who were at the conference last week!  Some of =
us
>> from Illinois were asking about setting up a sequence so that three time=
d
>> quizzes (each of which consists of a single multipart problem) could be
>> taken in succession, each succeeding quiz becoming available only once t=
he
>> previous one had been attempted. I have this working now (thank you Ray =
for
>> your very valuable guidance!) EXCEPT in the case where a student starts =
a
>> quiz, gets distracted, and never submits a part and it times out.  Start=
ing
>> but never submitting an answer does not show up as a =E2=80=9Ctry=E2=80=
=9D -- using the
>> otherwise successful condition:
>>
>> &EXT('user.resource.resource.0.tries','q2') >0
>>
>> For a couple of minutes I had hoped that maybe &check_status() might wor=
k
>> if I looked for a status that was unequal to =E2=80=9Cundef=E2=80=9D; ho=
wever, I realized
>> that=E2=80=99s not an &EXT function so I=E2=80=99m guessing does not che=
ck beyond the
>> present resource. This seems to be confirmed in the email exchange in th=
e
>> logs here:
>>
>> http://mail.lon-capa.org/pipermail/lon-capa-users/2008-May/003139.html
>>
>> It was suggested there that an equivalent of &check_status be made part =
of
>> the &ext functions, but apparently that maybe has not yet happened.
>>
>> I think I can come up with a work-around from another direction, but
>> thought I might as well ask on the list =E2=80=94 is anyone aware of a w=
ay to check
>> that a timed problem has been started even if no submissions on the prob=
lem
>> have been made?  Thanks!
>>
>> Doug
>>
>> Douglas Mills
>> Director of Instructional Technologies
>> Department of Chemistry
>> University of Illinois
>> dmills@illinois.edu
>> (217) 244-5739
>>
>> _______________________________________________
>> LON-CAPA-users mailing list
>> LON-CAPA-users@mail.lon-capa.org
>> http://mail.lon-capa.org/mailman/listinfo/lon-capa-users
>>
>
>
>
> --
> Raymond J. Batchelor, Ph.D.
> Department of Chemistry
> Simon Fraser University
> 8888 University Drive
> Burnaby, BC
> Canada
> V5A 1S6
>
>


--=20
Raymond J. Batchelor, Ph.D.
Department of Chemistry
Simon Fraser University
8888 University Drive
Burnaby, BC
Canada
V5A 1S6

--90e6ba6e82762af8fc04a4092036
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

I just tried that and it returned <br>
CAN_ANSWER<br>
CANNOT_ANSWER<br>
SHOW_ANSWER<br>
<br>
(there may be other possibilities).<br><br><div class=3D"gmail_quote">On Tu=
e, May 24, 2011 at 10:18 AM, Ray Batchelor <span dir=3D"ltr">&lt;<a href=3D=
"mailto:batchelo@sfu.ca">batchelo@sfu.ca</a>&gt;</span> wrote:<br><blockquo=
te class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc so=
lid;padding-left:1ex;">
I don&#39;t know, but here&#39;s a long shot guess:<br><br>Have a look at <=
br>/res/msu/albertel/test/ext_examples.problem<br><br>In there is mentioned=
 <br>$external::datestatus<br>which is supposed to return things like CLOSE=
, CAN_ANSWER, etc.<br>

<br>I haven&#39;t tried this but it might work......<div><div></div><div cl=
ass=3D"h5"><br><br><br><div class=3D"gmail_quote">On Tue, May 24, 2011 at 9=
:59 AM, Mills, Douglas G <span dir=3D"ltr">&lt;<a href=3D"mailto:dmills@ill=
inois.edu" target=3D"_blank">dmills@illinois.edu</a>&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Hey All,<br>
<br>
Good seeing those of you who were at the conference last week! =C2=A0Some o=
f us from Illinois were asking about setting up a sequence so that three ti=
med quizzes (each of which consists of a single multipart problem) could be=
 taken in succession, each succeeding quiz becoming available only once the=
 previous one had been attempted. I have this working now (thank you Ray fo=
r your very valuable guidance!) EXCEPT in the case where a student starts a=
 quiz, gets distracted, and never submits a part and it times out. =C2=A0St=
arting but never submitting an answer does not show up as a =E2=80=9Ctry=E2=
=80=9D -- using the otherwise successful condition:<br>


<br>
&amp;EXT(&#39;user.resource.resource.0.tries&#39;,&#39;q2&#39;) &gt;0<br>
<br>
For a couple of minutes I had hoped that maybe &amp;check_status() might wo=
rk if I looked for a status that was unequal to =E2=80=9Cundef=E2=80=9D; ho=
wever, I realized that=E2=80=99s not an &amp;EXT function so I=E2=80=99m gu=
essing does not check beyond the present resource. This seems to be confirm=
ed in the email exchange in the logs here:<br>


<br>
<a href=3D"http://mail.lon-capa.org/pipermail/lon-capa-users/2008-May/00313=
9.html" target=3D"_blank">http://mail.lon-capa.org/pipermail/lon-capa-users=
/2008-May/003139.html</a><br>
<br>
It was suggested there that an equivalent of &amp;check_status be made part=
 of the &amp;ext functions, but apparently that maybe has not yet happened.=
<br>
<br>
I think I can come up with a work-around from another direction, but though=
t I might as well ask on the list =E2=80=94 is anyone aware of a way to che=
ck that a timed problem has been started even if no submissions on the prob=
lem have been made? =C2=A0Thanks!<br>


<br>
Doug<br>
<br>
Douglas Mills<br>
Director of Instructional Technologies<br>
Department of Chemistry<br>
University of Illinois<br>
<a href=3D"mailto:dmills@illinois.edu" target=3D"_blank">dmills@illinois.ed=
u</a><br>
<a href=3D"tel:%28217%29%20244-5739" value=3D"+12172445739" target=3D"_blan=
k">(217) 244-5739</a><br>
<br>
_______________________________________________<br>
LON-CAPA-users mailing list<br>
<a href=3D"mailto:LON-CAPA-users@mail.lon-capa.org" target=3D"_blank">LON-C=
APA-users@mail.lon-capa.org</a><br>
<a href=3D"http://mail.lon-capa.org/mailman/listinfo/lon-capa-users" target=
=3D"_blank">http://mail.lon-capa.org/mailman/listinfo/lon-capa-users</a><br=
>
</blockquote></div><br><br clear=3D"all"><br></div></div><font color=3D"#88=
8888">-- <br>Raymond J. Batchelor, Ph.D.<br>Department of Chemistry<br>Simo=
n Fraser University<br>8888 University Drive<br>Burnaby, BC<br>Canada<br>V5=
A 1S6<br>
<br>
</font></blockquote></div><br><br clear=3D"all"><br>-- <br>Raymond J. Batch=
elor, Ph.D.<br>Department of Chemistry<br>Simon Fraser University<br>8888 U=
niversity Drive<br>Burnaby, BC<br>Canada<br>V5A 1S6<br><br>

--90e6ba6e82762af8fc04a4092036--