From 1bec9ef96d992e115b50ce62675bc8d5ef3a102f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jordan=20Aug=C3=A9?= Date: Fri, 7 Mar 2014 19:04:22 +0100 Subject: [PATCH] fixed update --- rest/update.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/rest/update.py b/rest/update.py index b1a88759..d2dd71e7 100644 --- a/rest/update.py +++ b/rest/update.py @@ -23,17 +23,18 @@ def dispatch(request, object_type, object_name): elif request.method == 'GET': #return error('only post request is supported') req_items = request.GET + print req_items for el in req_items.items(): - print "#===============>",o.params + print "#===============>",el if el[0].startswith('filters'): o.filters[el[0][8:-1]] = el[1] elif el[0].startswith('params'): - 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] }) + 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'): -- 2.47.0