Revision 2535deff snf-pithos-tools/pithos/tools/lib/client.py
b/snf-pithos-tools/pithos/tools/lib/client.py | ||
---|---|---|
562 | 562 |
|
563 | 563 |
def list_containers(self, format='text', if_modified_since=None, |
564 | 564 |
if_unmodified_since=None, limit=None, marker=None, |
565 |
shared=False, until=None, account=None): |
|
565 |
shared=False, until=None, account=None, public=False):
|
|
566 | 566 |
"""returns a list with the account containers""" |
567 | 567 |
account = account or self.account |
568 | 568 |
params = {'until':until} if until else {} |
569 | 569 |
if shared: |
570 | 570 |
params['shared'] = None |
571 |
if public: |
|
572 |
params['public'] = None |
|
571 | 573 |
headers = {'if-modified-since':if_modified_since, |
572 | 574 |
'if-unmodified-since':if_unmodified_since} |
573 | 575 |
return OOS_Client.list_containers(self, account=account, format=format, |
... | ... | |
645 | 647 |
limit=None, marker=None, prefix=None, delimiter=None, |
646 | 648 |
path=None, shared=False, include_trashed=False, params={}, |
647 | 649 |
if_modified_since=None, if_unmodified_since=None, meta='', |
648 |
until=None, account=None): |
|
650 |
until=None, account=None, public=False):
|
|
649 | 651 |
"""returns a list with the container objects""" |
650 | 652 |
account = account or self.account |
651 | 653 |
params = {'until':until, 'meta':meta} |
652 | 654 |
if shared: |
653 | 655 |
params['shared'] = None |
656 |
if public: |
|
657 |
params['public'] = None |
|
654 | 658 |
args = locals().copy() |
655 | 659 |
for elem in ['self', 'container', 'params', 'until', 'meta']: |
656 | 660 |
args.pop(elem) |
Also available in: Unified diff