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:
33f6b5e
)
- turn each slice attribute into a real dict before returning
author
Tony Mack
<tmack@cs.princeton.edu>
Fri, 13 Oct 2006 19:36:24 +0000
(19:36 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Fri, 13 Oct 2006 19:36:24 +0000
(19:36 +0000)
PLC/Methods/GetSliceAttributes.py
patch
|
blob
|
history
diff --git
a/PLC/Methods/GetSliceAttributes.py
b/PLC/Methods/GetSliceAttributes.py
index
a3335c0
..
38e887f
100644
(file)
--- a/
PLC/Methods/GetSliceAttributes.py
+++ b/
PLC/Methods/GetSliceAttributes.py
@@
-52,5
+52,8
@@
class GetSliceAttributes(Method):
raise PLCInvalidArgument, "Invalid slice attribute ID(s)"
slice_attributes = SliceAttributes(self.api, slice_attribute_id_list).values()
-
+ # turn each slice attribute into a real dict
+ slice_attributes = [dict(slice_attribute.items()) \
+ for slice_attribute in slice_attributes]
+
return slice_attributes