@@ -64,14 +64,21 @@ set arguments: *designator, arg_1 ... arg_N*
6464 Set the values of an existing item in the tracker as specified by
6565 ``designator``. The new values are specified in ``arg_1`` through
6666 ``arg_N``. The arguments are name=value pairs (e.g. ``status='3'``).
67+
68+ filter arguments: *classname, list or None, attributes*
69+
70+ list can be None (requires ``allow_none=True`` when
71+ instantiating the ServerProxy) to indicate search for all values,
72+ or a list of ids. The attributes are given as a dictionary of
73+ name value pairs to search for.
6774======= ====================================================================
6875
6976sample python client
7077====================
7178::
7279
7380 >>> import xmlrpclib
74- >>> roundup_server = xmlrpclib.ServerProxy('http://username:password@localhost:8000')
81+ >>> roundup_server = xmlrpclib.ServerProxy('http://username:password@localhost:8000', allow_none=True )
7582 >>> roundup_server.list('user')
7683 ['admin', 'anonymous', 'demo']
7784 >>> roundup_server.list('issue', 'id')
@@ -85,4 +92,11 @@ sample python client
8592 {'status' : '3' }
8693 >>> roundup_server.create('issue', "title='another bug'", "status=2")
8794 '2'
88-
95+ >>> roundup_server.filter('user',None,{'username':'adm'})
96+ ['1']
97+ >>> roundup_server.filter('user',['1','2'],{'username':'adm'})
98+ ['1']
99+ >>> roundup_server.filter('user',['2'],{'username':'adm'})
100+ []
101+ >>> roundup_server.filter('user',[],{'username':'adm'})
102+ []
0 commit comments