[LON-CAPA-cvs] cvs: loncom /homework response.pm /homework/caparesponse caparesponse.pm
www
lon-capa-cvs@mail.lon-capa.org
Mon, 19 Jun 2006 16:16:22 -0000
www Mon Jun 19 12:16:22 2006 EDT
Modified files:
/loncom/homework response.pm
/loncom/homework/caparesponse caparesponse.pm
Log:
Moving mathresponse
Index: loncom/homework/response.pm
diff -u loncom/homework/response.pm:1.138 loncom/homework/response.pm:1.139
--- loncom/homework/response.pm:1.138 Wed Mar 8 17:21:01 2006
+++ loncom/homework/response.pm Mon Jun 19 12:15:53 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# various response type definitons response definition
#
-# $Id: response.pm,v 1.138 2006/03/08 22:21:01 albertel Exp $
+# $Id: response.pm,v 1.139 2006/06/19 16:15:53 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -32,7 +32,7 @@
use Apache::lonnet;
BEGIN {
- &Apache::lonxml::register('Apache::response',('responseparam','parameter','dataresponse','customresponse'));
+ &Apache::lonxml::register('Apache::response',('responseparam','parameter','dataresponse','customresponse','mathresponse'));
}
sub start_response {
@@ -434,6 +434,23 @@
return $result;
}
+sub start_mathresponse {
+ my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_;
+ my $result;
+ if ($target eq 'meta') {
+ &Apache::response::start_response($parstack,$safeeval);
+ $result=&Apache::response::meta_package_write('mathresponse');
+ &Apache::response::end_response();
+ } else {
+# $result.=&start_numericalresponse(@_);
+ }
+ return $result;
+}
+
+sub end_mathresponse {
+# return end_numericalresponse(@_);
+}
+
sub start_answer {
my ($target,$token,$tagstack,$parstack,$parser,$safeeval)=@_;
my $result;
Index: loncom/homework/caparesponse/caparesponse.pm
diff -u loncom/homework/caparesponse/caparesponse.pm:1.191 loncom/homework/caparesponse/caparesponse.pm:1.192
--- loncom/homework/caparesponse/caparesponse.pm:1.191 Mon Jun 19 09:59:21 2006
+++ loncom/homework/caparesponse/caparesponse.pm Mon Jun 19 12:16:21 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# caparesponse definition
#
-# $Id: caparesponse.pm,v 1.191 2006/06/19 13:59:21 www Exp $
+# $Id: caparesponse.pm,v 1.192 2006/06/19 16:16:21 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -35,7 +35,7 @@
use Apache::lonnet;
BEGIN {
- &Apache::lonxml::register('Apache::caparesponse',('caparesponse','numericalresponse','stringresponse','formularesponse','mathresponse'));
+ &Apache::lonxml::register('Apache::caparesponse',('caparesponse','numericalresponse','stringresponse','formularesponse'));
}
my %answer;
@@ -931,23 +931,6 @@
return end_numericalresponse(@_);
}
-sub start_mathresponse {
- my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_;
- my $result;
- if ($target eq 'meta') {
- &Apache::response::start_response($parstack,$safeeval);
- $result=&Apache::response::meta_package_write('mathresponse');
- &Apache::response::end_response();
- } else {
-# $result.=&start_numericalresponse(@_);
- }
- return $result;
-}
-
-sub end_mathresponse {
-# return end_numericalresponse(@_);
-}
-
1;
__END__