Revision 14c94c48 snf-cyclades-app/synnefo/plankton/views.py
b/snf-cyclades-app/synnefo/plankton/views.py | ||
---|---|---|
291 | 291 |
raise faults.BadRequest("Malformed request.") |
292 | 292 |
|
293 | 293 |
with image_backend(request.user_uniq) as backend: |
294 |
images = backend.list(filters, params) |
|
294 |
images = backend.list_images(filters, params)
|
|
295 | 295 |
|
296 | 296 |
# Remove keys that should not be returned |
297 | 297 |
fields = DETAIL_FIELDS if detail else LIST_FIELDS |
... | ... | |
320 | 320 |
|
321 | 321 |
images = [] |
322 | 322 |
with image_backend(request.user_uniq) as backend: |
323 |
for image in backend.iter_shared(member=member):
|
|
323 |
for image in backend.list_shared_images(member=member):
|
|
324 | 324 |
image_id = image['id'] |
325 | 325 |
images.append({'image_id': image_id, 'can_share': False}) |
326 | 326 |
|
Also available in: Unified diff