--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I got this example working, if it may help someone. Used http password for the username (user's settings in gerrit)
import requests
from requests.auth import HTTPDigestAuth
url = 'http://serverhost.com/a/changes/?o=CURRENT_COMMIT&o=CURRENT_REVISION'
res = requests.get(url, auth=HTTPDigestAuth('username', 'password'))
#print res.__dict__
for k,v in res.__dict__.iteritems():
print "\nproperty:", k
print "\nvalue:", v