Changeset 83


Ignore:
Timestamp:
11/30/05 17:48:25 (19 years ago)
Author:
thauvin
Message:
  • add set_status
Location:
trunk/soft/ObsData
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/soft/ObsData/ObsData.pm

    • Property cvs2svn:cvs-rev changed from 1.25 to 1.26
    r82 r83  
    6868        close($self->{loghandle}); 
    6969        $self->{loghandle} = undef; 
     70    } 
     71} 
     72 
     73sub set_status { 
     74    my ($self, %settings) = @_; 
     75    my %status_default = ( 
     76        archive_new => 1, 
     77        archive_time => 0, 
     78        archive_size => 0, 
     79 
     80        data_new => 1, 
     81        data_configmtime => 0, 
     82 
     83    ); 
     84     
     85    foreach (keys %status_default) { 
     86        $self->{status_make_work}{$_} = defined($settings{$_}) ? $settings{$_} : $status_default{$_}; 
    7087    } 
    7188} 
  • trunk/soft/ObsData/ObsData/Repository.pm

    • Property cvs2svn:cvs-rev changed from 1.21 to 1.22
    r81 r83  
    9999 
    100100our @ISA = qw(ObsData::Repository); 
    101  
    102 my $status_default = { 
    103     archive_new => 1, 
    104     archive_time => 0, 
    105     archive_size => 0, 
    106  
    107     data_new => 1, 
    108     data_configmtime => 0, 
    109      
    110 }; 
    111101 
    112102sub new { 
Note: See TracChangeset for help on using the changeset viewer.