Revision 90ee1eb3 snf-pithos-app/pithos/api/functions.py

b/snf-pithos-app/pithos/api/functions.py
275 275
    shared = False
276 276
    if 'shared' in request.GET:
277 277
        shared = True
278
    public = False
279
    if 'public' in request.GET:
280
        public = True
278 281
    
279 282
    try:
280 283
        containers = request.backend.list_containers(request.user_uniq, v_account,
281
                                                marker, limit, shared, until)
284
                                                marker, limit, shared, until, public)
282 285
    except NotAllowedError:
283 286
        raise Forbidden('Not allowed')
284 287
    except NameError:
......
518 521
    shared = False
519 522
    if 'shared' in request.GET:
520 523
        shared = True
524
    public = False
525
    if 'public' in request.GET:
526
        public = True
521 527
    
522 528
    if request.serialization == 'text':
523 529
        try:
524 530
            objects = request.backend.list_objects(request.user_uniq, v_account,
525 531
                                        v_container, prefix, delimiter, marker,
526
                                        limit, virtual, 'pithos', keys, shared, until)
532
                                        limit, virtual, 'pithos', keys, shared,
533
                                        until, public)
527 534
        except NotAllowedError:
528 535
            raise Forbidden('Not allowed')
529 536
        except NameError:

Also available in: Unified diff