Mercurial > p > roundup > code
diff doc/xmlrpc.txt @ 4449:3f251efd5f48
Add "lookup" method to xmlrpc interface (Ralf Schlatterbeck)
| author | Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net> |
|---|---|
| date | Fri, 29 Oct 2010 10:41:39 +0000 |
| parents | a70dbbc7f967 |
| children | 23de24f57566 |
line wrap: on
line diff
--- a/doc/xmlrpc.txt Fri Oct 22 14:14:26 2010 +0000 +++ b/doc/xmlrpc.txt Fri Oct 29 10:41:39 2010 +0000 @@ -65,6 +65,12 @@ ``designator``. The new values are specified in ``arg_1`` through ``arg_N``. The arguments are name=value pairs (e.g. ``status='3'``). +lookup arguments: *classname, key_value* + + looks up the key_value for the given class. The class needs to + have a key and the user needs search permission on the key + attribute and id for the given classname. + filter arguments: *classname, list or None, attributes* list can be None (requires ``allow_none=True`` when @@ -100,3 +106,5 @@ [] >>> roundup_server.filter('user',[],{'username':'adm'}) [] + >>> roundup_server.lookup('user','admin') + '1'
