Diff for /rat/lonsequence.pm between versions 1.26 and 1.28

version 1.26, 2006/04/04 15:32:12 version 1.28, 2006/11/02 21:15:22
Line 26 Line 26
 #  #
 # http://www.lon-capa.org/  # http://www.lon-capa.org/
 #  #
 # (Handler to resolve ambiguous file locations  
 #  
   
 package Apache::lonsequence;  package Apache::lonsequence;
   
Line 35  use strict; Line 33  use strict;
 use Apache::lonnet;  use Apache::lonnet;
 use Apache::Constants qw(:common :http REDIRECT);  use Apache::Constants qw(:common :http REDIRECT);
 use GDBM_File;  use GDBM_File;
 use Apache::lonratedt;  use LONCAPA::map();
 use Apache::lonratsrv;  use Apache::lonratsrv();
 use Apache::lonpageflip;  use Apache::lonpageflip();
 use Apache::loncommon;  use Apache::loncommon();
 use Apache::lonlocal;  use Apache::lonlocal;
   
 my %selhash;  my %selhash;
Line 50  sub attemptread { Line 48  sub attemptread {
     my $fn=shift;      my $fn=shift;
     &Apache::lonnet::repcopy($fn);      &Apache::lonnet::repcopy($fn);
     if (-e $fn) {      if (-e $fn) {
  return &Apache::lonratedt::attemptread($fn);   return &LONCAPA::map::attemptread($fn);
     } else {      } else {
         return ();          return ();
     }      }
Line 60  sub mapread { Line 58  sub mapread {
     my $fn=shift;      my $fn=shift;
     &Apache::lonnet::repcopy($fn);      &Apache::lonnet::repcopy($fn);
     if (-e $fn) {      if (-e $fn) {
  return &Apache::lonratedt::mapread($fn,'');   return &LONCAPA::map::mapread($fn,'');
     } else {      } else {
         return ();          return ();
     }      }
Line 108  onClick="javascript:select_group()"> Line 106  onClick="javascript:select_group()">
 </form>     </form>   
 ENDSELECT  ENDSELECT
     my $diropendb =       my $diropendb = 
     "/home/httpd/perl/tmp/$env{'user.domain'}\_$env{'user.name'}_groupsec.db";      "/home/httpd/perl/tmp/$env{'user.domain'}\_$env{'user.name'}_sel_res.db";
         if (tie(%selhash,'GDBM_File',$diropendb,&GDBM_WRCREAT(),0640)) {          if (tie(%selhash,'GDBM_File',$diropendb,&GDBM_WRCREAT(),0640)) {
     if ($env{'form.launch'} eq '1') {      if ($env{'form.launch'} eq '1') {
        &start_fresh_session();         &start_fresh_session();
Line 116  ENDSELECT Line 114  ENDSELECT
             $successtied=1;              $successtied=1;
   
 # - Evaluate actions from previous page (both cumulatively and chronologically)  # - Evaluate actions from previous page (both cumulatively and chronologically)
         if ($env{'form.catalogmode'} eq 'groupimport') {          if ($env{'form.catalogmode'} eq 'import') {
     my $acts=$env{'form.acts'};      my $acts=$env{'form.acts'};
     my @Acts=split(/b/,$acts);      my @Acts=split(/b/,$acts);
     my %ahash;      my %ahash;

Removed from v.1.26  
changed lines
  Added in v.1.28


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>