- Timestamp:
- 07/24/12 22:56:06 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Objects.pm
r1023 r1071 550 550 } 551 551 552 =head2 text_dump ($handle, $ options, $base)552 =head2 text_dump ($handle, $config, $base) 553 553 554 554 Dump object into C<$handle> … … 557 557 558 558 sub 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); 561 561 return 1; 562 562 } … … 569 569 570 570 sub dump { 571 my ($self, $ options, $base) = @_;571 my ($self, $config, $base) = @_; 572 572 573 573 my $otype = $self->type; … … 581 581 582 582 foreach my $attr (sort { $a cmp $b } $base->list_canonical_fields($otype, 583 $ options->{only_rw} ? 'rw' : 'r')) {583 $config->{only_rw} ? 'rw' : 'r')) { 584 584 my $oattr = $base->attribute($otype, $attr); 585 585 if (ref $self) { 586 586 my $val = $self->get_c_field($attr); 587 if ($val || $ options->{empty_attr}) {587 if ($val || $config->{empty_attr}) { 588 588 if (my @allowed = $base->obj_attr_allowed_values($otype, $attr)) { 589 589 $dump .= sprintf("# %s must be%s: %s\n",
Note: See TracChangeset
for help on using the changeset viewer.