diff --git a/api2/views.py b/api2/views.py index 67325649f4..f984adc427 100644 --- a/api2/views.py +++ b/api2/views.py @@ -482,10 +482,8 @@ class OpDeleteView(APIView): return api_error(status.HTTP_404_NOT_FOUND, 'File or directory not found.') - names = file_names.split(':') - names = map(lambda x: unquote(x).decode('utf-8'), names) - - for file_name in names: + for file_name in file_names.split(':'): + file_name = unquote(file_name.encode('utf-8')) try: seafserv_threaded_rpc.del_file(repo_id, parent_dir, file_name, request.user.username) diff --git a/urls.py b/urls.py index 360186ef2e..48f4ca6880 100644 --- a/urls.py +++ b/urls.py @@ -79,7 +79,6 @@ urlpatterns = patterns('', url(r'^useradmin/password/reset/(?P[^/]+)/$', user_reset, name='user_reset'), ### Apps ### -# (r'^api/', include('api.urls')), (r'^api2/', include('api2.urls')), (r'^avatar/', include('avatar.urls')), (r'^notification/', include('notifications.urls')),