Changeset 1261


Ignore:
Timestamp:
11/05/14 12:35:23 (10 years ago)
Author:
nanardon
Message:

handle properly rename_object in synch mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/SynchAccess/base.pm

    r1023 r1261  
    9797} 
    9898 
     99=head2 rename_object 
     100 
     101=cut 
     102 
     103sub rename_object { 
     104    my ($self, $otype, $uid) = @_; 
     105    foreach ($self->bases) { 
     106        if ($_->is_supported_object($otype)) { 
     107            $_->rename_object($otype, $uid) or do { 
     108                la_log(LA_ERR, 
     109                    "Cannot get object $otype/$uid in %s/%s", 
     110                    $_->type, 
     111                    $_->label 
     112                ); 
     113                return; 
     114            }; 
     115        } 
     116    } 
     117} 
     118 
    99119sub DESTROY {} 
    100120 
Note: See TracChangeset for help on using the changeset viewer.