Mercurial > hg > AuthRPC
comparison README.txt @ 26:346114023528 0.2.0a
Added __getfile__ mechanism
author | Ben Croston <ben@croston.org> |
---|---|
date | Mon, 02 Jan 2012 00:12:41 +0000 |
parents | d0b8c9edf4f5 |
children | bea0c77734ca |
comparison
equal
deleted
inserted
replaced
25:d86e7357a91b | 26:346114023528 |
---|---|
31 client = ServerProxy('http://localhost:1234/', | 31 client = ServerProxy('http://localhost:1234/', |
32 username='myuser', | 32 username='myuser', |
33 password='secret', | 33 password='secret', |
34 user_agent='myprogram') | 34 user_agent='myprogram') |
35 retval = client.do_something('test') | 35 retval = client.do_something('test') |
36 file_contents = client.__getfile__('myfile.pdf') | |
36 batch = BatchCall(client) | 37 batch = BatchCall(client) |
37 batch.do_something('call 1') | 38 batch.do_something('call 1') |
38 batch.do_something('call 2') | 39 batch.do_something('call 2') |
39 batch() | 40 batch() |
40 | 41 |