[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm /metadata_database/LONCAPA lonmetadata.pm /publisher lonpublisher.pm

www www at source.lon-capa.org
Wed Mar 14 16:54:02 EDT 2012


www		Wed Mar 14 20:54:02 2012 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
    /loncom/metadata_database/LONCAPA	lonmetadata.pm 
    /loncom/publisher	lonpublisher.pm 
  Log:
  Some comments
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1157 loncom/lonnet/perl/lonnet.pm:1.1158
--- loncom/lonnet/perl/lonnet.pm:1.1157	Fri Mar  9 16:36:00 2012
+++ loncom/lonnet/perl/lonnet.pm	Wed Mar 14 20:53:50 2012
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1157 2012/03/09 16:36:00 www Exp $
+# $Id: lonnet.pm,v 1.1158 2012/03/14 20:53:50 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3379,7 +3379,13 @@
     my $url=&declutter(shift);
     return if (! defined($url) || $url eq '');
     unless ($env{'request.course.id'}) { return ''; }
+#
+# Mark that this url was used in this course
+#
     $accesshash{$env{'request.course.id'}.'___'.$url.'___course'}=1;
+#
+# Increase the access count for this resource in this child process
+#
     my $key=$$.$processmarker.'_'.$dumpcount.'___'.$url.'___count';
     $accesshash{$key}++;
 }
Index: loncom/metadata_database/LONCAPA/lonmetadata.pm
diff -u loncom/metadata_database/LONCAPA/lonmetadata.pm:1.34 loncom/metadata_database/LONCAPA/lonmetadata.pm:1.35
--- loncom/metadata_database/LONCAPA/lonmetadata.pm:1.34	Tue Mar  6 21:48:28 2012
+++ loncom/metadata_database/LONCAPA/lonmetadata.pm	Wed Mar 14 20:53:56 2012
@@ -1,6 +1,6 @@
 # The LearningOnline Network with CAPA
 #
-# $Id: lonmetadata.pm,v 1.34 2012/03/06 21:48:28 droeschl Exp $
+# $Id: lonmetadata.pm,v 1.35 2012/03/14 20:53:56 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -919,6 +919,10 @@
             $data{$type.'_list'} = join(',',@{$resdata->{$type}});
         }
     }
+#
+# NOTE: usage is named sequsage elsewhere in LON-CAPA
+# The translation happens here
+#
     if (defined($resdata->{'usage'}) && 
         ref($resdata->{'usage'}) eq 'ARRAY') {
         $data{'sequsage'} = scalar(@{$resdata->{'usage'}});
Index: loncom/publisher/lonpublisher.pm
diff -u loncom/publisher/lonpublisher.pm:1.278 loncom/publisher/lonpublisher.pm:1.279
--- loncom/publisher/lonpublisher.pm:1.278	Sun Jan 29 03:08:32 2012
+++ loncom/publisher/lonpublisher.pm	Wed Mar 14 20:54:02 2012
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Publication Handler
 #
-# $Id: lonpublisher.pm,v 1.278 2012/01/29 03:08:32 raeburn Exp $
+# $Id: lonpublisher.pm,v 1.279 2012/03/14 20:54:02 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1017,6 +1017,11 @@
 		   $outdep.= ' - <span class="LC_error">'.&mt('Currently not available').
 		       '</span>';
                } else {
+#
+# Store the fact that the dependency has been used by the target file
+# Unfortunately, usage is erroneously named sequsage in lonmeta.pm
+# The translation happens in lonmetadata.pm
+#
                    my %temphash=(&Apache::lonnet::declutter($target).'___'.
                              &Apache::lonnet::declutter($thisdep).'___usage'
                                  => time);




More information about the LON-CAPA-cvs mailing list