fixed 'accepts' parameter. accepts lists now
authorTony Mack <tmack@cs.princeton.edu>
Tue, 19 Feb 2008 21:51:53 +0000 (21:51 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Tue, 19 Feb 2008 21:51:53 +0000 (21:51 +0000)
PLC/Methods/GetPCUTypes.py

index cf0d689..2a81508 100644 (file)
@@ -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)
         ]