[LON-CAPA-cvs] cvs: loncom /homework/caparesponse caparesponse.pm

bowersj2 lon-capa-cvs@mail.lon-capa.org
Wed, 04 Jun 2003 15:23:08 -0000


bowersj2		Wed Jun  4 11:23:08 2003 EDT

  Modified files:              
    /loncom/homework/caparesponse	caparesponse.pm 
  Log:
  - damn did this ever work?
  
  - <string> and <formula> response need to setup the ids so proper 
  metadata is generated
  
  
Index: loncom/homework/caparesponse/caparesponse.pm
diff -u loncom/homework/caparesponse/caparesponse.pm:1.103 loncom/homework/caparesponse/caparesponse.pm:1.104
--- loncom/homework/caparesponse/caparesponse.pm:1.103	Mon May 19 17:40:04 2003
+++ loncom/homework/caparesponse/caparesponse.pm	Wed Jun  4 11:23:08 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # caparesponse definition
 #
-# $Id: caparesponse.pm,v 1.103 2003/05/19 21:40:04 albertel Exp $
+# $Id: caparesponse.pm,v 1.104 2003/06/04 15:23:08 bowersj2 Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -494,7 +494,9 @@
     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('stringresponse');
+	&Apache::response::end_response();
     } else {
 	$result.=&start_numericalresponse(@_);
     }
@@ -509,7 +511,9 @@
     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('formularesponse');
+	&Apache::response::end_response();
     } else {
 	$result.=&start_numericalresponse(@_);
     }