resource reservation work in progress
[unfold.git] / rest / update.py
index 9657976..b1a8875 100644 (file)
@@ -24,15 +24,23 @@ def dispatch(request, object_type, object_name):
         #return error('only post request is supported')
         req_items = request.GET
     for el in req_items.items():
+        
+        print "#===============>",o.params
         if el[0].startswith('filters'):
             o.filters[el[0][8:-1]] = el[1]
         elif el[0].startswith('params'):
-            o.params[el[0][7:-1]] = el[1]
+            print "#======>", el[0]
+            print "#======>", el[0][7:8]
+            print "#======>", el[0][10:-1]
+            print "#======>", el[1]
+            o.params.append({ el[0][10:-1] : el[1] })
+            
+            
         elif el[0].startswith('fields'):
             o.fields=req_items.getlist('fields[]')
         elif el[0].startswith('options'):
             o.options = req_items.getlist('options[]')
-
+    
     try:
         response = o.update()