[LON-CAPA-cvs] cvs: loncom /homework externalresponse.pm
albertel
lon-capa-cvs-allow@mail.lon-capa.org
Tue, 11 Sep 2007 19:24:14 -0000
albertel Tue Sep 11 15:24:14 2007 EDT
Modified files:
/loncom/homework externalresponse.pm
Log:
- using LWP::UA's published interface
Index: loncom/homework/externalresponse.pm
diff -u loncom/homework/externalresponse.pm:1.8 loncom/homework/externalresponse.pm:1.9
--- loncom/homework/externalresponse.pm:1.8 Tue Sep 11 15:07:01 2007
+++ loncom/homework/externalresponse.pm Tue Sep 11 15:24:14 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# external style responses
#
-# $Id: externalresponse.pm,v 1.8 2007/09/11 19:07:01 albertel Exp $
+# $Id: externalresponse.pm,v 1.9 2007/09/11 19:24:14 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -74,7 +74,7 @@
$part,$id);
%Apache::loncapagrade::results=();
$Apache::lonhomework::results{"resource.$part.$id.submission"}=$response;
- if ($res->{_rc} != '200') {
+ if ($res->is_error()) {
$Apache::loncapagrade::results{'awarddetail'}='ERROR';
} else {
&Apache::lonxml::register('Apache::loncapagrade',