summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2007-09-18 10:35:05 -0400
committerWill Woods <wwoods@redhat.com>2007-09-18 10:35:05 -0400
commit9935743296ff8eaad781b28ff8ae97c8204c1a77 (patch)
tree75eefd7f06fadf0cb4bd44289f8d49229541599b
parent1f274b0465cc37ab07cfcd10948976965edf05c4 (diff)
downloadpython-bugzilla-9935743296ff8eaad781b28ff8ae97c8204c1a77.tar.gz
python-bugzilla-9935743296ff8eaad781b28ff8ae97c8204c1a77.tar.xz
python-bugzilla-9935743296ff8eaad781b28ff8ae97c8204c1a77.zip
added getcomponentsdetails to _get_info
-rw-r--r--bugzilla.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/bugzilla.py b/bugzilla.py
index 3c2f97f..9b9ff36 100644
--- a/bugzilla.py
+++ b/bugzilla.py
@@ -177,7 +177,6 @@ class Bugzilla(object):
def _getcomponents(self,product):
return self._proxy.bugzilla.getProdCompInfo(product,self.user,self.password)
-
def getcomponents(self,product,force_refresh=False):
'''Return a dict of components:descriptions for the given product.'''
if force_refresh or product not in self._components:
@@ -191,7 +190,6 @@ class Bugzilla(object):
component, description, initialowner, initialqacontact, initialcclist
'''
return self._proxy.bugzilla.getProdCompDetails(product,self.user,self.password)
-
def getcomponentsdetails(self,product,force_refresh=False):
'''Returns a dict of dicts, containing detailed component information
for the given product. The keys of the dict are component names. For
@@ -207,7 +205,6 @@ class Bugzilla(object):
cdict[name] = item
self._components_details[product] = cdict
return self._components_details[product]
-
def getcomponentdetails(self,product,component,force_refresh=False):
'''Get details for a single component. Returns a dict with the
following keys:
@@ -217,7 +214,7 @@ class Bugzilla(object):
def _get_info(self,product=None):
'''This is a convenience method that does getqueryinfo, getproducts,
- and (optionally) getcomponents in one big fat multicall. This is much
+ and (optionally) getcomponents in one big fat multicall. This is a bit
faster than calling them all separately.
If you're doing interactive stuff you should call this, with the
@@ -228,16 +225,18 @@ class Bugzilla(object):
mc._getproducts()
if product:
mc._getcomponents(product)
+ mc._getcomponentsdetails(product)
r = mc.run()
(self._querydata,self._querydefaults) = r[0]
self._products = r[1]
if product:
self._components[product] = r[2]
+ self._components_details[product] = r[3]
# In theory, there should be some way to set a variable on Bug
# such that it contains attributes for all the keys listed in the
# getBug call. This isn't it, though.
#{'methodName':'bugzilla.getBug','params':(1,self.user,self.password)}
- #Bug.__slots__ = r[3].keys()
+ #Bug.__slots__ = r[4].keys()
#---- Methods for reading bugs and bug info