Index: openacs-4/packages/xowf/lib/inclass-exam.wf =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowf/lib/Attic/inclass-exam.wf,v diff -u -N -r1.1.2.68 -r1.1.2.69 --- openacs-4/packages/xowf/lib/inclass-exam.wf 2 May 2021 11:46:16 -0000 1.1.2.68 +++ openacs-4/packages/xowf/lib/inclass-exam.wf 2 May 2021 11:54:48 -0000 1.1.2.69 @@ -834,22 +834,7 @@ } } - ######################################################################## - # web-callable method "proctoring-display" - # - :proc www-proctoring-display {} { - # - # Display the proctoring files collected for this exam using the - # UI by the proctoring-support package. - # - # By this is also possible to delete the proctoring files, either - # for the whole exam or for the single participant. - # - ${:package_id} return_page -adp /packages/proctoring-support/lib/proctoring-display -variables { - {object_id ${:item_id}} - } - } ######################################################################## # web-callable method "answer" @@ -878,18 +863,11 @@ } } } - :proc www-proctor-answer {} { - # - # Start answering an exam in proctored mode - # - if {[:property _state] ne "published"} { - :util_user_message -html -message "Cannot start answer workflow in this state" - } else { - set wf [xowf::test_item::answer_manager get_answer_wf [self]] - $wf www-create-or-use -parent_id [:item_id] - } - } + + ######################################################################## + # web-callable function "qrcode", acts as responder + # :proc www-qrcode {} { # # Produce a QR code with an answer link @@ -901,6 +879,41 @@ ad_script_abort } + ######################################################################## + # web-callable method "proctoring-display" + # + :proc www-proctoring-display {} { + # + # Display the proctoring files collected for this exam using the + # UI by the proctoring-support package. + # + # By this is also possible to delete the proctoring files, either + # for the whole exam or for the single participant. + # + + ${:package_id} return_page -adp /packages/proctoring-support/lib/proctoring-display -variables { + {object_id ${:item_id}} + } + } + + ######################################################################## + # web-callable function "proctor-answer" + # + :proc www-proctor-answer {} { + # + # Start answering an exam in proctored mode + # + if {[:property _state] ne "published"} { + :util_user_message -html -message "Cannot start answer workflow in this state" + } else { + set wf [xowf::test_item::answer_manager get_answer_wf [self]] + $wf www-create-or-use -parent_id [:item_id] + } + } + + ######################################################################## + # web-callable function "proctor" + # :proc www-proctor {} { # # Redirect the exam to an iframe for implementing proctoring. The @@ -953,6 +966,9 @@ } } + ######################################################################## + # web-callable function "proctor-image", acts as responder + # :proc www-proctor-image {} { # # View a proctored image @@ -992,7 +1008,7 @@ ######################################################################## - # AJAX call "poll" + # AJAX call "poll", acts as responder # :proc www-poll {} { # @@ -1007,7 +1023,7 @@ } ######################################################################## - # AJAX call "send-participant-message" + # AJAX call "send-participant-message", acts as responder # :proc www-send-participant-message {} { #