Commit 3927d22b authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

pithos-api: Update api_method wrapper

parent 8292785f
......@@ -1062,13 +1062,14 @@ def get_pithos_usage(token):
def api_method(http_method=None, token_required=True, user_required=True, logger=None,
format_allowed=False, default_serialization="json"):
format_allowed=False, serializations=None):
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,
default_serialization=default_serialization)
serializations=serializations)
@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