ops! this will cause problems for omf back-end. (fixed manually on PLE).
[plcapi.git] / PLC / Methods / GetPCUTypes.py
index cf0d689..7d50821 100644 (file)
@@ -1,3 +1,5 @@
+# $Id$
+# $URL$
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -14,8 +16,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)
         ]