X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FFilter.py;h=4e950f1e1a495aa51cf04624b5df6aa5dbf26055;hb=refs%2Fheads%2Fplanetlab-4_0-branch;hp=406349606cdf8eaa4516377bd2d0224c41837220;hpb=a0e131a2893c75df786c94997370b01cb623dee0;p=plcapi.git diff --git a/PLC/Filter.py b/PLC/Filter.py index 40634960..4e950f1e 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 """