From: Ciro Scognamiglio Date: Wed, 26 Feb 2014 18:45:31 +0000 (+0100) Subject: fixed small bug with properties content not being updated X-Git-Tag: myslice-1.1~283 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=de9d705455770a4d532f3b36151217c857a899f9;p=myslice.git fixed small bug with properties content not being updated --- diff --git a/rest/__init__.py b/rest/__init__.py index 3f25d776..91f126ce 100644 --- a/rest/__init__.py +++ b/rest/__init__.py @@ -29,7 +29,7 @@ class DecimalEncoder(json.JSONEncoder): def dispatch(request, object_type, object_name): - object_properties = [] + object_properties = None object_filters = {} switch = { @@ -49,8 +49,7 @@ def dispatch(request, object_type, object_name): object_filters[el[0][8:-1]] = el[1] elif el[0].startswith('columns'): object_properties = request.POST.getlist('columns[]') - - + # platform is local if ((object_type == 'platform') or (object_type == 'testbed')) : object_type = 'local:platform'