git://git.onelab.eu
/
unfold.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff6408f
)
fixed small bug with properties content not being updated
author
Ciro Scognamiglio
<ciro.scognamiglio@cslash.net>
Wed, 26 Feb 2014 18:45:31 +0000
(19:45 +0100)
committer
Ciro Scognamiglio
<ciro.scognamiglio@cslash.net>
Wed, 26 Feb 2014 18:45:31 +0000
(19:45 +0100)
rest/__init__.py
patch
|
blob
|
history
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):
- object_properties =
[]
+ object_properties =
None
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[]')
-
-
+
# platform is local
if ((object_type == 'platform') or (object_type == 'testbed')) :
object_type = 'local:platform'