From 02d525f6d1b8163f51fd3796e13a94f3f71defba Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 19 Feb 2008 21:51:53 +0000 Subject: [PATCH] fixed 'accepts' parameter. accepts lists now --- PLC/Methods/GetPCUTypes.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PLC/Methods/GetPCUTypes.py b/PLC/Methods/GetPCUTypes.py index cf0d689..2a81508 100644 --- 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) ] -- 2.43.0