From bc671ce77313a1867fe6b64bf34adb75c836bf36 Mon Sep 17 00:00:00 2001 From: poetwang Date: Thu, 10 Apr 2014 11:30:23 +0800 Subject: [PATCH] [api2] Fix api change --- seahub/api2/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/seahub/api2/views.py b/seahub/api2/views.py index 64c6b3ff01..a13a3ad01d 100644 --- a/seahub/api2/views.py +++ b/seahub/api2/views.py @@ -1052,7 +1052,7 @@ class OpMoveView(APIView): try: seafile_api.move_file(repo_id, parent_dir, file_name, dst_repo, dst_dir, new_filename, - username) + username, 0, synchronous=1) except SearpcError,e: return api_error(HTTP_520_OPERATION_FAILED, "Failed to move file.") @@ -1097,7 +1097,7 @@ class OpCopyView(APIView): try: seafile_api.copy_file(repo_id, parent_dir, file_name, dst_repo, dst_dir, new_filename, - username) + username, 0, synchronous=1) except SearpcError,e: return api_error(HTTP_520_OPERATION_FAILED, "Failed to copy file.") @@ -1288,7 +1288,7 @@ class FileView(APIView): seafile_api.move_file(src_repo_id, src_dir_utf8, filename_utf8, dst_repo_id, dst_dir_utf8, new_filename_utf8, - username) + username, 0, synchronous=1) except SearpcError, e: return api_error(status.HTTP_500_INTERNAL_SERVER_ERROR, "SearpcError:" + e.msg)