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
Merge branch 'onelab' of ssh://git.onelab.eu/git/myslice into onelab
[myslice.git]
/
rest
/
create.py
diff --git
a/rest/create.py
b/rest/create.py
index
afb62b7
..
e3b8e4d
100644
(file)
--- a/
rest/create.py
+++ b/
rest/create.py
@@
-23,8
+23,7
@@
def dispatch(request, object_type, object_name):
elif request.method == 'GET':
#return error('only post request is supported')
req_items = request.GET
elif request.method == 'GET':
#return error('only post request is supported')
req_items = request.GET
- print req_items
- for el in req_items.items():
+ for el in list(req_items.items()):
# Filters not used for create
if el[0].startswith('filters'):
o.filters[el[0][8:-1]] = el[1]
# Filters not used for create
if el[0].startswith('filters'):
o.filters[el[0][8:-1]] = el[1]
@@
-44,6
+43,6
@@
def dispatch(request, object_type, object_name):
else :
return error('an error has occurred')
else :
return error('an error has occurred')
- except Exception
,
e:
+ except Exception
as
e:
return error(str(e))
return error(str(e))