4
FORMAT = '%(asctime)-15s %(name)s %(levelname)s: %(message)s'
5
logging.basicConfig(format=FORMAT)
7
connector = rpc.GzipXmlRPCConnector('localhost', 10070)
8
connector = rpc.NetRPCConnector('localhost', 8070)
9
connector = rpc.XmlRPCConnector('localhost', 10070)
10
connector = rpc.SecuredXmlRPCConnector('localhost', 10071)
12
connection = rpc.Connection(connector, 'server_test', 'admin', 'admin', 1)
14
Users = rpc.Object(connection, 'res.users')
15
admin = Users.read([1,2])
17
Currencies = rpc.Object(connection, 'res.currency')
18
all_cur_ids = Currencies.search([])
19
all_currencies = Currencies.read(all_cur_ids)