Commit 50165863 authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Make --public and --sharing to work in upload

Bug #3509
parent 08aad6db
......@@ -331,7 +331,6 @@ class store_list(_store_container_command):
'format to parse until data (default: d/m/Y H:M:S )',
'--format'),
shared=FlagArgument('show only shared', '--shared'),
public=FlagArgument('show only public', '--public'),
more=FlagArgument(
'output results in pages (-n to set items per page, default 10)',
'--more'),
......
......@@ -394,6 +394,8 @@ class PithosClient(PithosRestClient):
hashmap=True,
content_type=content_type,
json=hashmap,
permissions=sharing,
public=public,
success=201)
# download_* auxiliary methods
......
......@@ -660,8 +660,6 @@ class PithosRestClient(StorageClient):
{ 'read':[user1, group1, user2, ...],
'write':['user3, group2, group3, ...] }
:param permissions: update permissions
:param public: (bool) If true, Object is publicly accessible
:param metadata: (dict) Optional user defined metadata in the form
......
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