IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13072


Ignore:
Timestamp:
Apr 27, 2007, 3:15:38 PM (19 years ago)
Author:
jhoblitt
Message:

change Nebulous::Client->move() to use ->rename_object()

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/Changes

    r13071 r13072  
    22
    330.05
     4    - change Nebulous::Client->move() to use ->rename_object()
    45    - add Nebulous::Server->rename_object()
    56    - add neb-rm
  • trunk/Nebulous/Changes

    r13071 r13072  
    22
    330.05
     4    - change Nebulous::Client->move() to use ->rename_object()
    45    - add Nebulous::Server->rename_object()
    56    - add neb-rm
  • trunk/Nebulous/lib/Nebulous/Client.pm

    r13067 r13072  
    11# Copyright (c) 2004  Joshua Hoblitt
    22#
    3 # $Id: Client.pm,v 1.27 2007-04-27 23:50:57 jhoblitt Exp $
     3# $Id: Client.pm,v 1.28 2007-04-28 01:15:38 jhoblitt Exp $
    44
    55package Nebulous::Client;
     
    644644    $log->debug( "entered - @_" );
    645645
    646     unless ( $self->copy( $key, $new_key ) ) {
    647         $log->debug( "can not copy object" );
    648         $log->debug( "leaving" );
    649 
    650         return undef;
    651     }
    652 
    653     unless ( $self->delete( $key ) ) {
    654         $log->debug( "can not delete object" );
     646    my $response = $self->{ 'server' }->rename_object( $key, $new_key );
     647    if ( $response->fault ) {
     648        $log->error( $response->faultcode, " - ", $response->faultstring );
    655649        $log->debug( "leaving" );
    656650
Note: See TracChangeset for help on using the changeset viewer.