git://git.onelab.eu
/
myslice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Chrysostomos for scheduler
[myslice.git]
/
rest
/
update.py
diff --git
a/rest/update.py
b/rest/update.py
index
d2dd71e
..
f81c63e
100644
(file)
--- a/
rest/update.py
+++ b/
rest/update.py
@@
-34,8
+34,10
@@
def dispatch(request, object_type, object_name):
#print "#======>", el[0][7:8]
#print "#======>", el[0][10:-1]
print "#======> 1 ", el[1]
#print "#======>", el[0][7:8]
#print "#======>", el[0][10:-1]
print "#======> 1 ", el[1]
- o.params = req_items.getlist('params[]')
-
+ #o.params = req_items.getlist('params[]')
+ #o.params.append({el[0]:el[1]})
+ o.params.append({el[0][7:-1]:el[1]})
+ print "o.params = ",o.params
elif el[0].startswith('fields'):
o.fields=req_items.getlist('fields[]')
elif el[0].startswith('fields'):
o.fields=req_items.getlist('fields[]')
@@
-51,5
+53,5
@@
def dispatch(request, object_type, object_name):
return error('an error has occurred')
except Exception, e:
return error('an error has occurred')
except Exception, e:
- return error(str(e))
+ return error(
"exception:"+
str(e))