salimfadhley/jenkinsapi — pull request #43 by lifeisstillgood (2012-08-17 21:08:11+00:00)
Title: Bug fix basic auth params

Hi,

Thank you for making this - very useful so far. But I have run into an BasicAuth bug

So I have change all api calls to accepts username and password....

I have never really understood urllib2 and Handlers etc. So when I tried to use JenkinsAPI to grab artifact information, it works fine unless BasicAuth is on

Looking at http://packages.python.org/jenkinsapi/_modules/jenkinsapi/api.html, clearly the convenience functions do not carry user/pass params, and some urllibs add handler magic is expected.

I could not get the magic working so could I suggest taking the approach shown here,

if not please could you update examples/ with a relevant BasicAuth example

(PS 2 commits because I had the **kwds thought halfway through writing this)
cheers