fork download
  1. #!/usr/bin/python
  2.  
  3. import xmlrpclib
  4. from pprint import pprint
  5.  
  6. username = 'openerp_connect' #the user
  7. pwd = 'J335E1U23435v6m' #the password of the user
  8.  
  9. # Get the uid
  10. sock_common = xmlrpclib.ServerProxy('http://d...content-available-to-author-only...w.eu/index.php/api/xmlrpc')
  11. session_id = sock_common.login(username, pwd)
  12.  
  13. pprint(session_id)
  14.  
  15. resources = sock_common.resources(session_id)
  16.  
  17. pprint(resources)
  18.  
  19. result = sock_common.call(session_id,'store.list',[])
  20.  
  21. pprint(result)
  22.  
  23.  
Runtime error #stdin #stdout #stderr 0.1s 10104KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 3, in <module>
ImportError: No module named xmlrpclib