Ignore:
Timestamp:
07/24/12 22:56:06 (12 years ago)
Author:
nanardon
Message:
  • rename options() to config() to clarify its role
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Objects.pm

    r1023 r1071  
    550550} 
    551551 
    552 =head2 text_dump ($handle, $options, $base) 
     552=head2 text_dump ($handle, $config, $base) 
    553553 
    554554Dump object into C<$handle> 
     
    557557 
    558558sub text_dump { 
    559     my ($self, $handle, $options, $base) = @_; 
    560     print $handle $self->dump($options, $base); 
     559    my ($self, $handle, $config, $base) = @_; 
     560    print $handle $self->dump($config, $base); 
    561561    return 1; 
    562562} 
     
    569569 
    570570sub dump { 
    571     my ($self, $options, $base) = @_; 
     571    my ($self, $config, $base) = @_; 
    572572 
    573573    my $otype = $self->type; 
     
    581581 
    582582    foreach my $attr (sort { $a cmp $b } $base->list_canonical_fields($otype, 
    583         $options->{only_rw} ? 'rw' : 'r')) { 
     583        $config->{only_rw} ? 'rw' : 'r')) { 
    584584        my $oattr = $base->attribute($otype, $attr); 
    585585        if (ref $self) { 
    586586            my $val = $self->get_c_field($attr); 
    587             if ($val || $options->{empty_attr}) { 
     587            if ($val || $config->{empty_attr}) { 
    588588                if (my @allowed = $base->obj_attr_allowed_values($otype, $attr)) { 
    589589                    $dump .= sprintf("# %s must be%s: %s\n", 
Note: See TracChangeset for help on using the changeset viewer.