git://git.onelab.eu
/
unfold.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed small bug with properties content not being updated
[unfold.git]
/
rest
/
__init__.py
diff --git
a/rest/__init__.py
b/rest/__init__.py
index
3f25d77
..
91f126c
100644
(file)
--- a/
rest/__init__.py
+++ b/
rest/__init__.py
@@
-29,7
+29,7
@@
class DecimalEncoder(json.JSONEncoder):
def dispatch(request, object_type, object_name):
def dispatch(request, object_type, object_name):
- object_properties =
[]
+ object_properties =
None
object_filters = {}
switch = {
object_filters = {}
switch = {
@@
-49,8
+49,7
@@
def dispatch(request, object_type, object_name):
object_filters[el[0][8:-1]] = el[1]
elif el[0].startswith('columns'):
object_properties = request.POST.getlist('columns[]')
object_filters[el[0][8:-1]] = el[1]
elif el[0].startswith('columns'):
object_properties = request.POST.getlist('columns[]')
-
-
+
# platform is local
if ((object_type == 'platform') or (object_type == 'testbed')) :
object_type = 'local:platform'
# platform is local
if ((object_type == 'platform') or (object_type == 'testbed')) :
object_type = 'local:platform'