Revision 6255b97d
b/snf-pithos-app/pithos/api/functions.py | ||
---|---|---|
45 | 45 |
from synnefo.lib.astakos import get_user |
46 | 46 |
|
47 | 47 |
from pithos.api.faults import ( |
48 |
Fault, NotModified, BadRequest, Unauthorized, Forbidden, ItemNotFound, Conflict, |
|
49 |
LengthRequired, PreconditionFailed, RequestEntityTooLarge, RangeNotSatisfiable, UnprocessableEntity) |
|
48 |
Fault, NotModified, BadRequest, Unauthorized, Forbidden, ItemNotFound, |
|
49 |
Conflict, LengthRequired, PreconditionFailed, RequestEntityTooLarge, |
|
50 |
RangeNotSatisfiable, UnprocessableEntity) |
|
50 | 51 |
from pithos.api.util import ( |
51 |
json_encode_decimal, rename_meta_key, format_header_key, printable_header_dict, |
|
52 |
get_account_headers, put_account_headers, get_container_headers, put_container_headers, get_object_headers, |
|
53 |
put_object_headers, update_manifest_meta, update_sharing_meta, update_public_meta, |
|
54 |
validate_modification_preconditions, validate_matching_preconditions, split_container_object_string, |
|
55 |
copy_or_move_object, get_int_parameter, get_content_length, get_content_range, socket_read_iterator, |
|
56 |
SaveToBackendHandler, object_data_response, put_object_block, hashmap_md5, simple_list_response, api_method, |
|
57 |
retrieve_username, retrieve_uuid) |
|
52 |
json_encode_decimal, rename_meta_key, format_header_key, |
|
53 |
printable_header_dict, get_account_headers, put_account_headers, |
|
54 |
get_container_headers, put_container_headers, get_object_headers, |
|
55 |
put_object_headers, update_manifest_meta, update_sharing_meta, |
|
56 |
update_public_meta, validate_modification_preconditions, |
|
57 |
validate_matching_preconditions, split_container_object_string, |
|
58 |
copy_or_move_object, get_int_parameter, get_content_length, |
|
59 |
get_content_range, socket_read_iterator, SaveToBackendHandler, |
|
60 |
object_data_response, put_object_block, hashmap_md5, simple_list_response, |
|
61 |
api_method, retrieve_username, retrieve_uuid, |
|
62 |
put_account_translation_headers) |
|
58 | 63 |
from pithos.api.settings import UPDATE_MD5 |
59 | 64 |
|
60 |
from pithos.backends.base import NotAllowedError, QuotaError, ContainerNotEmpty, ItemNotExists, VersionNotExists, ContainerExists |
|
65 |
from pithos.backends.base import ( |
|
66 |
NotAllowedError, QuotaError, ContainerNotEmpty, ItemNotExists, |
|
67 |
VersionNotExists, ContainerExists) |
|
61 | 68 |
|
62 | 69 |
from pithos.backends.filter import parse_filters |
63 | 70 |
|
Also available in: Unified diff