summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2007-09-18 14:29:01 -0400
committerWill Woods <wwoods@redhat.com>2007-09-18 14:29:01 -0400
commit3db72c4029477d8eeb306c4270c5d188b9f4d269 (patch)
treea1bc8eed72db185affe4878488fa2093fb984d70
parent608e2d464b32d549711311bf41f426593588e314 (diff)
downloadpython-bugzilla-3db72c4029477d8eeb306c4270c5d188b9f4d269.tar.gz
python-bugzilla-3db72c4029477d8eeb306c4270c5d188b9f4d269.tar.xz
python-bugzilla-3db72c4029477d8eeb306c4270c5d188b9f4d269.zip
fix up bugfields() method signature, add comments
-rw-r--r--bugzilla.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/bugzilla.py b/bugzilla.py
index 2d0338e..cbe278d 100644
--- a/bugzilla.py
+++ b/bugzilla.py
@@ -144,7 +144,7 @@ class Bugzilla(object):
def _getbugfields(self):
return self._proxy.bugzilla.getBugFields(self.user,self.password)
- def getbugfields(self):
+ def getbugfields(self,force_refresh=False):
'''Calls getBugFields, which returns a list of fields in each bug
for this bugzilla instance. This can be used to set the list of attrs
on the Bug object.'''
@@ -247,12 +247,6 @@ class Bugzilla(object):
if product:
self._components[product] = r.pop(0)
self._components_details[product] = r.pop(0)
- # 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.pop(0).keys()
-
#---- Methods for reading bugs and bug info
@@ -656,6 +650,7 @@ class Bug(object):
'''
# TODO: Implement an 'autorefresh' attribute that causes update methods
# to run as multicalls which fetch the newly-updated data afterward.
+ # TODO: use bugzilla.bugfields to fill in __dict__ or something
def __init__(self,bugzilla,**kwargs):
self.bugzilla = bugzilla
if 'dict' in kwargs and kwargs['dict']: