Revision cfc4b87c snf-cyclades-app/synnefo/plankton/views.py
b/snf-cyclades-app/synnefo/plankton/views.py | ||
---|---|---|
153 | 153 |
with image_backend(request.user_uniq) as backend: |
154 | 154 |
image = backend.register(name, location, params) |
155 | 155 |
else: |
156 |
#f = StringIO(request.raw_post_data)
|
|
156 |
#f = StringIO(request.body)
|
|
157 | 157 |
#image = backend.put(name, f, params) |
158 | 158 |
return HttpResponse(status=501) # Not Implemented |
159 | 159 |
|
... | ... | |
384 | 384 |
log.debug('update_image_members %s', image_id) |
385 | 385 |
members = [] |
386 | 386 |
try: |
387 |
data = json.loads(request.raw_post_data)
|
|
387 |
data = json.loads(request.body)
|
|
388 | 388 |
for member in data['memberships']: |
389 | 389 |
members.append(member['member_id']) |
390 | 390 |
except (ValueError, KeyError, TypeError): |
Also available in: Unified diff