fixed small bug with properties content not being updated
authorCiro Scognamiglio <ciro.scognamiglio@cslash.net>
Wed, 26 Feb 2014 18:45:31 +0000 (19:45 +0100)
committerCiro Scognamiglio <ciro.scognamiglio@cslash.net>
Wed, 26 Feb 2014 18:45:31 +0000 (19:45 +0100)
rest/__init__.py

index 3f25d77..91f126c 100644 (file)
@@ -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'