Guest User

Untitled

a guest
Feb 19th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. from boto.sdb.connection import SDBConnection
  2.  
  3. c = SDBConnection('mykeyid', 'mykeypass', proxy='myproxy', proxy_port='3128', proxy_user='auser', proxy_pass='apassword')
  4. c.get_all_domains()
  5. #>>> [Domain:my_domain]
  6.  
  7. d = c.get_domain('my_domain')
  8.  
  9. for i in d.select('select * from my_domain'):
  10. print i
  11. #>>> {u'title': u'SOA Governance'}
  12.  
  13. for i in d.select('select * from my_domain'):
  14. i.add_value('author', 'erl')
  15. i.save(replace=True)
  16.  
  17. for i in d.select('select * from my_domain'):
  18. print i
  19. #>>> {u'author': u'erl', u'title': u'SOA Governance'}
Add Comment
Please, Sign In to add comment