Changeset 19231 for gli


Ignore:
Timestamp:
2009-04-23T15:14:43+12:00 (15 years ago)
Author:
ak19
Message:

Making rename shortcut option work for the remote case.

Location:
gli/trunk/src/org/greenstone/gatherer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/collection/CollectionTree.java

    r18631 r19231  
    294294        rename.addActionListener(this);
    295295        add(rename);
    296         if(Gatherer.isGsdlRemote) {
    297         rename.setEnabled(false);
    298         }
    299296
    300297        TreePath path = selection_paths[0];
  • gli/trunk/src/org/greenstone/gatherer/remote/RemoteGreenstoneServerAction.java

    r19173 r19231  
    471471        String move_collection_file_command = "cmd=move-collection-file";
    472472        move_collection_file_command += "&c=" + URLEncoder.encode(collection_name, "UTF-8");
    473         move_collection_file_command += "&source=" + URLEncoder.encode(source_collection_file_relative_path, "UTF-8");
    474         move_collection_file_command += "&target=" + URLEncoder.encode(target_collection_file_relative_path, "UTF-8");
     473        move_collection_file_command += "&source=" + Base64.encodeBytes(source_collection_file_relative_path.getBytes());
     474        move_collection_file_command += "&target=" + Base64.encodeBytes(target_collection_file_relative_path.getBytes());
     475        //move_collection_file_command += "&source=" + URLEncoder.encode(source_collection_file_relative_path, "UTF-8");
     476        //move_collection_file_command += "&target=" + URLEncoder.encode(target_collection_file_relative_path, "UTF-8");
    475477        action_output = remote.sendCommandToServer(move_collection_file_command, null);
    476478    }
Note: See TracChangeset for help on using the changeset viewer.