Changeset 105 for LATMOS-Accounts/lib/LATMOS/Accounts/Bases.pm
- Timestamp:
- 05/14/09 02:09:55 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LATMOS-Accounts/lib/LATMOS/Accounts/Bases.pm
r103 r105 284 284 sub sync_object { 285 285 my ($self, $srcobj, %options) = @_; 286 $self->is_supported_object($srcobj->type) or return ;286 $self->is_supported_object($srcobj->type) or return ''; 287 287 my @fields = $options{attrs} 288 288 ? @{ $options{attrs} } … … 294 294 } 295 295 if (my $dstobj = $self->get_object($srcobj->type, $srcobj->id)) { 296 return $dstobj->set_c_fields(%data);296 return 'SYNCHED' if ($dstobj->set_c_fields(%data)); 297 297 } elsif(!$options{nocreate}) { 298 return $self->create_c_object($srcobj->type, $srcobj->id, %data);298 return 'CREATE' if ($self->create_c_object($srcobj->type, $srcobj->id, %data)); 299 299 } else { 300 return 0;300 return ''; 301 301 } 302 303 return; 302 304 } 303 305
Note: See TracChangeset
for help on using the changeset viewer.