# HG changeset patch # User Jeff Hammel # Date 1288727428 25200 # Node ID 873a703555e96b19e2a26dd22ec5812a720bcd9a # Parent 81c0de264b8696e38864b1918916ec75af9f5b17 add credentials to ctor diff -r 81c0de264b86 -r 873a703555e9 bzconsole/main.py --- a/bzconsole/main.py Tue Nov 02 11:32:15 2010 -0700 +++ b/bzconsole/main.py Tue Nov 02 12:50:28 2010 -0700 @@ -18,8 +18,11 @@ console API to bugzilla """ - def __init__(self, server='https://api-dev.bugzilla.mozilla.org/latest'): + def __init__(self, server='https://api-dev.bugzilla.mozilla.org/latest', + username=None, password=None): self.server = server + self.username = username + self.password = password def products(self, classification=None): """list bugzilla products"""