[LON-CAPA-cvs] cvs: loncom /interface lonparmset.pm /lonnet/perl lonnet.pm

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 28 Aug 2002 19:48:57 -0000


albertel		Wed Aug 28 15:48:57 2002 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
    /loncom/interface	lonparmset.pm 
  Log:
  - trying to make NAV SPRS and PARM all get along when it comes to the mythical part 0
  
  - passing 'keys' to metadata pass back only known parts that really exist in the problem
  
  - passing 'allpossiblekeys' to metadata has it pass back all real keys and the fake part0 keys
  
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.273 loncom/lonnet/perl/lonnet.pm:1.274
--- loncom/lonnet/perl/lonnet.pm:1.273	Fri Aug 23 17:31:09 2002
+++ loncom/lonnet/perl/lonnet.pm	Wed Aug 28 15:48:57 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.273 2002/08/23 21:31:09 albertel Exp $
+# $Id: lonnet.pm,v 1.274 2002/08/28 19:48:57 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2861,8 +2861,9 @@
 # the next is the end of "start tag"
 	 }
        }
-	&metadata_generate_part0(\%metathesekeys,\%metacache,$uri);
        $metacache{$uri.':keys'}=join(',',keys %metathesekeys);
+	&metadata_generate_part0(\%metathesekeys,\%metacache,$uri);
+       $metacache{$uri.':allpossiblekeys'}=join(',',keys %metathesekeys);
        $metacache{$uri.':cachedtimestamp'}=time;
 # this is the end of "was not already recently cached
     }
Index: loncom/interface/lonparmset.pm
diff -u loncom/interface/lonparmset.pm:1.64 loncom/interface/lonparmset.pm:1.65
--- loncom/interface/lonparmset.pm:1.64	Wed Aug 21 13:18:08 2002
+++ loncom/interface/lonparmset.pm	Wed Aug 28 15:48:57 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set parameters for assessments
 #
-# $Id: lonparmset.pm,v 1.64 2002/08/21 17:18:08 www Exp $
+# $Id: lonparmset.pm,v 1.65 2002/08/28 19:48:57 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -496,7 +496,7 @@
 		$$ids[$#$ids+1]=$id;
 		$$typep{$id}=$1;
 		$$keyp{$id}='';
-		foreach (split(/\,/,&Apache::lonnet::metadata($srcf,'keys'))) {
+		foreach (split(/\,/,&Apache::lonnet::metadata($srcf,'allpossiblekeys'))) {
 		  if ($_=~/^parameter\_(.*)/) {
                     my $key=$_;
                     my $allkey=$1;