Revision 19ddd41b snf-pithos-app/pithos/api/util.py
b/snf-pithos-app/pithos/api/util.py | ||
---|---|---|
58 | 58 |
QUOTAHOLDER_URL, QUOTAHOLDER_TOKEN, |
59 | 59 |
QUOTAHOLDER_POOLSIZE, |
60 | 60 |
ASTAKOS_URL, |
61 |
BACKEND_QUOTA, BACKEND_VERSIONING, |
|
61 |
BACKEND_ACCOUNT_QUOTA, BACKEND_CONTAINER_QUOTA, |
|
62 |
BACKEND_VERSIONING, |
|
62 | 63 |
BACKEND_FREE_VERSIONING, BACKEND_POOL_SIZE, |
63 | 64 |
COOKIE_NAME, USER_CATALOG_URL, |
64 | 65 |
RADOS_STORAGE, RADOS_POOL_BLOCKS, |
... | ... | |
959 | 960 |
free_versioning=BACKEND_FREE_VERSIONING, |
960 | 961 |
block_params=BLOCK_PARAMS, |
961 | 962 |
public_url_security=PUBLIC_URL_SECURITY, |
962 |
public_url_alphabet=PUBLIC_URL_ALPHABET) |
|
963 |
public_url_alphabet=PUBLIC_URL_ALPHABET, |
|
964 |
account_quota_policy=BACKEND_ACCOUNT_QUOTA, |
|
965 |
container_quota_policy=BACKEND_CONTAINER_QUOTA, |
|
966 |
container_versioning_policy=BACKEND_VERSIONING) |
|
963 | 967 |
|
964 | 968 |
|
965 | 969 |
def get_backend(): |
966 | 970 |
backend = _pithos_backend_pool.pool_get() |
967 |
backend.default_policy['quota'] = BACKEND_QUOTA |
|
968 |
backend.default_policy['versioning'] = BACKEND_VERSIONING |
|
969 | 971 |
backend.messages = [] |
970 | 972 |
return backend |
971 | 973 |
|
Also available in: Unified diff