Changeset 39 for LATMOS-Accounts
- Timestamp:
- 04/25/09 04:10:37 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LATMOS-Accounts/bin/la-query
r35 r39 16 16 17 17 my $LA = LATMOS::Accounts->new($config); 18 my $labase = $base ? $LA->base($base) : $LA->default_base; 18 19 19 my $labase = $base ? $LA->base($base) : $LA->default_base; 20 foreach ($labase->list_objects($otype)) { 21 print "$_\n"; 20 if (my $ouid = shift(@ARGV)) { 21 my $obj = $labase->get_object($otype, $ouid); 22 foreach ($labase->list_canonicals_fields($otype)) { 23 printf(" %s: %s\n", $_, $obj->get_c_field($_) || 'N/A'); 24 } 25 } else { 26 foreach ($labase->list_objects($otype)) { 27 print "$_\n"; 28 } 22 29 }
Note: See TracChangeset
for help on using the changeset viewer.