X-Git-Url: http://git.onelab.eu/?p=unfold.git;a=blobdiff_plain;f=manifoldapi%2Fmanifoldproxy.py;fp=manifoldapi%2Fmanifoldproxy.py;h=eef3a694a74bcbb4aa11422df6b22819d96ac68b;hp=3c5a04bcd0f17befac2f5ff8d407a05830524d5b;hb=46becb7a1b05415bfd176072abb73262dd30c53a;hpb=95f5146580d1d0b86e8a648a0ee482f8ec6cc582 diff --git a/manifoldapi/manifoldproxy.py b/manifoldapi/manifoldproxy.py index 3c5a04bc..eef3a694 100644 --- a/manifoldapi/manifoldproxy.py +++ b/manifoldapi/manifoldproxy.py @@ -88,8 +88,10 @@ with the query passed using POST""" # # resource reservation if (manifold_query.action.lower() == 'update') : - for resources in result['value'][0]['resources'] : - activity.slice.resource(request, { 'slice' : result['value'][0]['slice_hrn'], 'resource' : result['value'][0]}) + print result['value'][0] + if 'resources' in result['value'][0] : + for resources in result['value'][0]['resources'] : + activity.slice.resource(request, { 'slice' : result['value'][0]['slice_hrn'], 'resource' : result['value'][0]}) json_answer=json.dumps(result)