From: Tony Mack Date: Tue, 19 Feb 2008 21:51:53 +0000 (+0000) Subject: fixed 'accepts' parameter. accepts lists now X-Git-Tag: PLCAPI-4.2-4~7 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=02d525f6d1b8163f51fd3796e13a94f3f71defba;p=plcapi.git fixed 'accepts' parameter. accepts lists now --- diff --git a/PLC/Methods/GetPCUTypes.py b/PLC/Methods/GetPCUTypes.py index cf0d689b..2a81508c 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) ]