Revision 3bdb9222 snf-pithos-app/pithos/api/functions.py

b/snf-pithos-app/pithos/api/functions.py
63 63
from pithos.api.settings import (UPDATE_MD5, TRANSLATE_UUIDS,
64 64
                                 SERVICE_TOKEN, ASTAKOS_BASE_URL)
65 65

  
66
from pithos.api import settings
67

  
66 68
from pithos.backends.base import (
67 69
    NotAllowedError, QuotaError, ContainerNotEmpty, ItemNotExists,
68 70
    VersionNotExists, ContainerExists)
......
209 211
    marker = request.GET.get('marker')
210 212
    limit = get_int_parameter(request.GET.get('limit'))
211 213
    if not limit:
212
        limit = 10000
214
        limit = settings.API_LIST_LIMIT
213 215

  
214 216
    accounts = request.backend.list_accounts(request.user_uniq, marker, limit)
215 217

  
......
371 373
    marker = request.GET.get('marker')
372 374
    limit = get_int_parameter(request.GET.get('limit'))
373 375
    if not limit:
374
        limit = 10000
376
        limit = settings.API_LIST_LIMIT
375 377

  
376 378
    shared = False
377 379
    if 'shared' in request.GET:
......
643 645
    marker = request.GET.get('marker')
644 646
    limit = get_int_parameter(request.GET.get('limit'))
645 647
    if not limit:
646
        limit = 10000
648
        limit = settings.API_LIST_LIMIT
647 649

  
648 650
    keys = request.GET.get('meta')
649 651
    if keys:

Also available in: Unified diff