--- loncom/homework/response.pm 2005/11/15 15:57:45 1.129 +++ loncom/homework/response.pm 2005/11/21 22:45:13 1.130 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # various response type definitons response definition # -# $Id: response.pm,v 1.129 2005/11/15 15:57:45 albertel Exp $ +# $Id: response.pm,v 1.130 2005/11/21 22:45:13 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -858,6 +858,23 @@ sub submitted { return 0; } +sub add_to_gradingqueue { + my ($nothing) = @_; + + my %queue_info = ( 'type' => 'problem', + 'time' => time); + + if (exists($Apache::lonhomework::history{"resource.0.checkedin.slot"})) { + $queue_info{'slot'}= + $Apache::lonhomework::history{"resource.0.checkedin.slot"}; + } + + my $result=&Apache::bridgetask::add_to_queue('gradingqueue',\%queue_info); + if ($result ne 'ok') { + &Apache::lonxml::error("add_to_queue said $result"); + } +} + # basically undef and 0 (both false) mean that they still have work to do # and all true values mean that they can't do any more work #