Changeset 262
- Timestamp:
- 07/24/09 17:02:27 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LATMOS-Accounts/lib/LATMOS/Accounts/Bases.pm
r257 r262 6 6 use LATMOS::Accounts::Bases::Objects; 7 7 use LATMOS::Accounts::Log; 8 use LATMOS::Accounts::Utils qw(exec_command); 8 9 9 10 our $VERSION = (q$Rev$ =~ /^Rev: (\d+) /)[0]; … … 43 44 $base->{_type} = lc($pclass); 44 45 $base->{_label} = $options{label}; 46 $base->{_options} = { %options }; 45 47 $base->{defattr} = $options{defattr}; 46 48 la_log(LA_DEBUG, 'Instanciate base %s (%s)', ($options{label} || 'N/A'), $pclass); … … 278 280 if ($self->can('_commit')) { 279 281 la_log(LA_DEBUG, 'Commiting data'); 280 return $self->_commit; 282 if (!(my $res = $self->_commit)) { 283 return $res; 284 } 285 if ($self->{options}{postcommit}) { 286 return exec_command($self->{options}{postcommit}, $self->{options}); 287 } 288 return 1; 281 289 } else { 282 290 return 1;
Note: See TracChangeset
for help on using the changeset viewer.