~unifield-team/unifield-wm/sync-us-55-sync-empty-false

« back to all changes in this revision

Viewing changes to test/test-gzip.py

  • Committer: Samus CTO
  • Date: 2012-08-28 15:01:57 UTC
  • Revision ID: cto@openerp.com-20120828150157-y7nt5fkt9j3aikia
[FIX] msf_sync_data_* enabled // SP-48

Show diffs side-by-side

added added

removed removed

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