X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FFilter.py;h=4e950f1e1a495aa51cf04624b5df6aa5dbf26055;hb=ee0717f6f326f2b1bcf34e8b10e306adb21f4ffa;hp=406349606cdf8eaa4516377bd2d0224c41837220;hpb=4604006f235246d8480da96e488c0c7fd6a09c91;p=plcapi.git diff --git a/PLC/Filter.py b/PLC/Filter.py index 4063496..4e950f1 100644 --- a/PLC/Filter.py +++ b/PLC/Filter.py @@ -59,10 +59,10 @@ class Filter(Parameter, dict): example : filter = { '-SORT' : [ '+node_id', '-hostname' ] } * '-OFFSET' : the number of first rows to be ommitted * '-LIMIT' : the amount of rows to be returned - example : filter = { '-OFFSET' : 100, '-PAGE':25} + example : filter = { '-OFFSET' : 100, 'LIMIT':25} A realistic example would read - GetNodes ( { 'hostname' : '*.edu' , '-SORT' : 'hostname' , '-OFFSET' : 30 , '-PAGE' : 25 } ) + GetNodes ( { 'hostname' : '*.edu' , '-SORT' : 'hostname' , '-OFFSET' : 30 , '-LIMIT' : 25 } ) and that would return nodes matching '*.edu' in alphabetical order from 31th to 55th """