changed template paths in settings (takes into account the theme)
[unfold.git] / rest / update.py
index 119c468..d2dd71e 100644 (file)
@@ -25,19 +25,24 @@ def dispatch(request, object_type, object_name):
         req_items = request.GET
     print req_items
     for el in req_items.items():
+        
+        print "#===============>",el
         if el[0].startswith('filters'):
             o.filters[el[0][8:-1]] = el[1]
-            print o.filters
         elif el[0].startswith('params'):
-            o.params[el[0][7:-1]] = el[1]
-            print o.params
+            print "#======> 0 ", el[0]
+            #print "#======>", el[0][7:8]
+            #print "#======>", el[0][10:-1]
+            print "#======> 1 ", el[1]
+            o.params = req_items.getlist('params[]')
+            
+            
         elif el[0].startswith('fields'):
             o.fields=req_items.getlist('fields[]')
         elif el[0].startswith('options'):
             o.options = req_items.getlist('options[]')
-
+    
     try:
-        print o.params
         response = o.update()
 
         if response :