Commit 0fde4ff9 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

pithos-app: Update pithos.api.util.api_method wrapper

to match the updated snf_django api_method decorator
parent 3927d22b
......@@ -1062,14 +1062,16 @@ def get_pithos_usage(token):
def api_method(http_method=None, token_required=True, user_required=True, logger=None,
format_allowed=False, serializations=None):
format_allowed=False, serializations=None,
strict_serlization=False):
serializations = serializations or ['json', 'xml']
def decorator(func):
@api.api_method(http_method=http_method, token_required=token_required,
user_required=user_required,
logger=logger, format_allowed=format_allowed,
astakos_url=ASTAKOS_BASE_URL,
serializations=serializations)
serializations=serializations,
strict_serlization=strict_serlization)
@wraps(func)
def wrapper(request, *args, **kwargs):
# The args variable may contain up to (account, container, object).
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment