Revision f483f65d
b/snf-pithos-app/pithos/api/functions.py | ||
---|---|---|
964 | 964 |
content_length = get_content_length(request) # Required by the API. |
965 | 965 |
|
966 | 966 |
src_account = request.META.get('HTTP_X_SOURCE_ACCOUNT') |
967 |
|
|
967 | 968 |
if not src_account: |
968 | 969 |
src_account = request.user_uniq |
970 |
else: |
|
971 |
if TRANSLATE_UUIDS: |
|
972 |
try: |
|
973 |
src_account = retrieve_uuid(getattr(request, 'token', None), |
|
974 |
src_account) |
|
975 |
except ItemNotExists: |
|
976 |
ItemNotFound('Invalid source account') |
|
977 |
|
|
969 | 978 |
if move_from: |
970 | 979 |
try: |
971 | 980 |
src_container, src_name = split_container_object_string( |
Also available in: Unified diff