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

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 16 Feb 2004 17:19:36 -0000


albertel		Mon Feb 16 12:19:36 2004 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
  - <preduedate> was stupid, it actually did 'whenever the problem can be seen, which thus included <afteranswerdate>
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.235 loncom/homework/structuretags.pm:1.236
--- loncom/homework/structuretags.pm:1.235	Fri Feb 13 18:59:24 2004
+++ loncom/homework/structuretags.pm	Mon Feb 16 12:19:36 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.235 2004/02/13 23:59:24 albertel Exp $
+# $Id: structuretags.pm,v 1.236 2004/02/16 17:19:36 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1086,9 +1086,10 @@
 sub start_preduedate {
     my ($target,$token,$tagstack,$parstack,$parser,$safeeval)=@_;
     if ($target eq 'web' || $target eq 'grade' || $target eq 'answer' || $target eq 'tex') {
+	&Apache::lonxml::debug("State in preduedate is ". $Apache::inputtags::status['-1']);
 	if ($Apache::inputtags::status['-1'] ne 'CAN_ANSWER' &&
-	    $Apache::inputtags::status['-1'] ne 'CANNOT_ANSWER' &&
-	    $Apache::inputtags::status['-1'] ne 'SHOW_ANSWER') {
+	    $Apache::inputtags::status['-1'] ne 'CANNOT_ANSWER') {
+	    &Apache::lonxml::debug("Wha? ". ($Apache::inputtags::status['-1'] ne 'SHOW_ANSWER'));
 	    &Apache::lonxml::get_all_text("/preduedate",$parser);
 	}
     }