Ignore:
Timestamp:
06/19/19 20:02:16 (5 years ago)
Author:
nanardon
Message:

Add a way to dump object and all related objects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Cli/Object.pm

    r2241 r2267  
    519519        }); 
    520520    } 
     521    if (1) { # TODO test SQL base 
     522        $self->add_func('extract', { 
     523            help => 'extract information about objects', 
     524            code => sub { 
     525                my ($env, $action) = @_; 
     526                foreach my $obj (sort @{$env->{_objects}}) { 
     527                    print $OUT $obj->dump({ recur => 1 }); 
     528                } 
     529                $env->rollback; 
     530            }, 
     531        }); 
     532    } 
    521533 
    522534    return $self; 
Note: See TracChangeset for help on using the changeset viewer.