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:
1b2b0dd
)
fixed 'accepts' parameter. accepts lists now
author
Tony Mack
<tmack@cs.princeton.edu>
Tue, 19 Feb 2008 21:51:53 +0000
(21:51 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Tue, 19 Feb 2008 21:51:53 +0000
(21:51 +0000)
PLC/Methods/GetPCUTypes.py
patch
|
blob
|
history
diff --git
a/PLC/Methods/GetPCUTypes.py
b/PLC/Methods/GetPCUTypes.py
index
cf0d689
..
2a81508
100644
(file)
--- a/
PLC/Methods/GetPCUTypes.py
+++ b/
PLC/Methods/GetPCUTypes.py
@@
-14,8
+14,10
@@
class GetPCUTypes(Method):
accepts = [
Auth(),
- Mixed([PCUType.fields['pcu_type_id'],
- PCUType.fields['model']],
+ Mixed([Mixed(PCUType.fields['pcu_type_id'],
+ PCUType.fields['model'])],
+ Parameter(str, 'model'),
+ Parameter(int, 'node_id'),
Filter(PCUType.fields)),
Parameter([str], "List of fields to return", nullok = True)
]