+ #return error('only post request is supported')
+ req_items = request.GET
+
+ for el in req_items.items():
+ if el[0].startswith('filters'):
+ o.filters[el[0][8:-1]] = el[1]
+ elif el[0].startswith('params'):
+ o.addParams(req_items.getlist('params[]'))
+ elif el[0].startswith('columns'):
+ o.addFilters(req_items.getlist('columns[]'))
+ elif el[0].startswith('options'):
+ o.options = req_items.getlist('options[]')
+
+ try:
+ response = o.execute()
+
+ if response :
+ return success('record updated')
+ else :
+ return error('an error has occurred')
+
+ except Exception, e:
+ return error(str(e))