Revision 5ddd6bcb snf-pithos-tools/pithos/tools/sh.py
b/snf-pithos-tools/pithos/tools/sh.py | ||
---|---|---|
143 | 143 |
default=None, help='show metadata until that date') |
144 | 144 |
parser.add_option('--format', action='store', dest='format', |
145 | 145 |
default='%d/%m/%Y', help='format to parse until date') |
146 |
parser.add_option('--shared', action='store_true', dest='shared', |
|
147 |
default=False, help='show only shared') |
|
148 |
parser.add_option('--public', action='store_true', dest='public', |
|
149 |
default=False, help='show only public') |
|
150 |
|
|
146 | 151 |
|
147 | 152 |
def execute(self, container=None): |
148 | 153 |
if container: |
... | ... | |
152 | 157 |
|
153 | 158 |
def list_containers(self): |
154 | 159 |
attrs = ['limit', 'marker', 'if_modified_since', |
155 |
'if_unmodified_since'] |
|
160 |
'if_unmodified_since', 'shared', 'public']
|
|
156 | 161 |
args = self._build_args(attrs) |
157 | 162 |
args['format'] = 'json' if self.detail else 'text' |
158 | 163 |
|
... | ... | |
167 | 172 |
#prepate params |
168 | 173 |
params = {} |
169 | 174 |
attrs = ['limit', 'marker', 'prefix', 'delimiter', 'path', |
170 |
'meta', 'if_modified_since', 'if_unmodified_since'] |
|
175 |
'meta', 'if_modified_since', 'if_unmodified_since', |
|
176 |
'shared', 'public'] |
|
171 | 177 |
args = self._build_args(attrs) |
172 | 178 |
args['format'] = 'json' if self.detail else 'text' |
173 | 179 |
|
Also available in: Unified diff