| 83 | The same example using `system.multicall()`. This reduces network and server |
| 84 | load by compacting all of the `system.methodHelp()` calls into one HTTP POST. |
| 85 | |
| 86 | {{{ |
| 87 | #!python |
| 88 | import xmlrpclib |
| 89 | |
| 90 | server = xmlrpclib.ServerProxy("http://athomas:password@localhost/trac-dev/login/xmlrpc") |
| 91 | methods = server.system.listMethods() |
| 92 | method_help = server.system.multicall([{'methodName': 'system.methodHelp', 'params': [method]} for method in methods]) |
| 93 | for help in method_help: |
| 94 | lines = help.splitlines() |
| 95 | print lines[0] |
| 96 | print '\n'.join([' ' + x for x in lines[2:]]) |
| 97 | print |
| 98 | }}} |
| 99 | |