Changeset 1269 for branches


Ignore:
Timestamp:
12/15/14 15:47:01 (9 years ago)
Author:
nanardon
Message:

backport: correction fonction rennomage

Location:
branches/4.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.0

  • branches/4.0/LATMOS-Accounts/lib/LATMOS/Accounts/SynchAccess/base.pm

    r1023 r1269  
    9797} 
    9898 
     99=head2 rename_object 
     100 
     101=cut 
     102 
     103sub rename_object { 
     104    my ($self, $otype, $uid, $newuid) = @_; 
     105    foreach ($self->bases) { 
     106        if ($_->is_supported_object($otype)) { 
     107            $_->rename_object($otype, $uid, $newuid) 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    return 1; 
     118} 
     119 
    99120sub DESTROY {} 
    100121 
Note: See TracChangeset for help on using the changeset viewer.