Ignore:
Timestamp:
2016-01-12T11:00:53+13:00 (8 years ago)
Author:
jmt12
Message:

Reverting these back to the older but better supported ISA approach to declaring inheritance. Not even sure why I used the new parent mechanism (aside from possibly copying from tutorial)... can I still blame baby brain after 10 months?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/DBDrivers/GDBMTXTGZ.pm

    r30355 r30370  
    3232use util;
    3333use FileUtils;
    34 # - OO inheritence
    35 use parent 'DBDrivers::70HyphenFormat';
     34use DBDrivers::70HyphenFormat;
     35
     36BEGIN
     37{
     38    @DBDrivers::GDBMTXTGZ::ISA = ('DBDrivers::70HyphenFormat');
     39}
    3640
    3741
     42## Constructor
    3843sub new
    3944{
     
    4348    $self->{'default_file_extension'} = 'txt.gz';
    4449    # note: file separator agnostic
    45     $self->{'executable_path'} = $ENV{'GSDLHOME'} . '/bin/' . $ENV{'GSDLOS'};
     50    $self->{'executable_path'} = &FileUtils::filenameConcatenate($ENV{'GSDLHOME'}, 'bin', $ENV{'GSDLOS'});
    4651    $self->{'read_executable'} = 'gzip --decompress --to-stdout';
    4752    $self->{'keyread_executable'} = $self->{'read_executable'};
Note: See TracChangeset for help on using the changeset viewer.