git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec2375c
)
- no need to filter out None anymore
author
Mark Huang
<mlhuang@cs.princeton.edu>
Tue, 3 Oct 2006 19:31:40 +0000
(19:31 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Tue, 3 Oct 2006 19:31:40 +0000
(19:31 +0000)
PLC/Methods/GetSlices.py
patch
|
blob
|
history
diff --git
a/PLC/Methods/GetSlices.py
b/PLC/Methods/GetSlices.py
index
e79fded
..
9aa041d
100644
(file)
--- a/
PLC/Methods/GetSlices.py
+++ b/
PLC/Methods/GetSlices.py
@@
-42,10
+42,4
@@
class GetSlices(Method):
can_view = member_of
slices = filter(can_view, slices)
- # Filter out undesired or None fields (XML-RPC cannot marshal
- # None) and turn each slice into a real dict.
- valid_return_fields_only = lambda (key, value): value is not None
- slices = [dict(filter(valid_return_fields_only, slice.items())) \
- for slice in slices]
-
return slices