changeset 7:873a703555e9

add credentials to ctor
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 02 Nov 2010 12:50:28 -0700
parents 81c0de264b86
children f71a067fe81a
files bzconsole/main.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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"""