Ignore:
Timestamp:
08/29/19 20:06:06 (5 years ago)
Author:
nanardon
Message:

Add la-dump: allow to dump in vrious format (xml only at time

File:
1 edited

Legend:

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

    r2277 r2278  
    889889    } 
    890890 
     891    my $SubOtype = undef; 
     892 
     893    if (@{ $config->{SubOtype} || []}) { 
     894        $SubOtype = { map { $_ => 1 } @{ $config->{SubOtype} } }; 
     895    } 
     896 
    891897    if (ref $self && $config->{recur}) { 
    892898          my %subobj = $self->ListChildObjects; 
    893899          foreach my $otype (sort keys %subobj) { 
     900              if ($SubOtype) { 
     901                  $SubOtype->{$otype} or next; 
     902              } 
    894903              foreach my $oname (sort @{ $subobj{$otype} }) { 
    895904                  my $obj = $self->base->get_object($otype, $oname) or next; 
Note: See TracChangeset for help on using the changeset viewer.