Revision b5aeeb2f snf-pithos-app/pithos/api/util.py

b/snf-pithos-app/pithos/api/util.py
1062 1062

  
1063 1063

  
1064 1064
def api_method(http_method=None, token_required=True, user_required=True, logger=None,
1065
               format_allowed=False, serializations=None):
1065
               format_allowed=False, serializations=None,
1066
               strict_serlization=False):
1066 1067
    serializations = serializations or ['json', 'xml']
1067 1068
    def decorator(func):
1068 1069
        @api.api_method(http_method=http_method, token_required=token_required,
1069 1070
                        user_required=user_required,
1070 1071
                        logger=logger, format_allowed=format_allowed,
1071 1072
                        astakos_url=ASTAKOS_BASE_URL,
1072
                        serializations=serializations)
1073
                        serializations=serializations,
1074
                        strict_serlization=strict_serlization)
1073 1075
        @wraps(func)
1074 1076
        def wrapper(request, *args, **kwargs):
1075 1077
            # The args variable may contain up to (account, container, object).

Also available in: Unified diff