summaryrefslogtreecommitdiffstats
path: root/bugzilla
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2008-08-08 10:01:47 -0400
committerWill Woods <wwoods@redhat.com>2008-08-08 10:01:47 -0400
commit3b1228e764c241f8dc74b930d1a9baef67e0e210 (patch)
tree4414d5963de9151e5a6868d58a7a74ceb726ce36 /bugzilla
parent5c54609e23fca1104e195ad4755b6ca098db6759 (diff)
downloadpython-bugzilla-3b1228e764c241f8dc74b930d1a9baef67e0e210.zip
python-bugzilla-3b1228e764c241f8dc74b930d1a9baef67e0e210.tar.gz
python-bugzilla-3b1228e764c241f8dc74b930d1a9baef67e0e210.tar.xz
Fix up _getbugssimple
Diffstat (limited to 'bugzilla')
-rw-r--r--bugzilla/bugzilla3.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bugzilla/bugzilla3.py b/bugzilla/bugzilla3.py
index c9bde08..fae316f 100644
--- a/bugzilla/bugzilla3.py
+++ b/bugzilla/bugzilla3.py
@@ -65,15 +65,15 @@ class Bugzilla3(bugzilla.base.BugzillaBase):
#---- Methods for reading bugs and bug info
def _getbugs(self,idlist):
+ '''Return a list of dicts of full bug info for each given bug id'''
r = self._proxy.Bug.get_bugs({'ids':idlist})
return [i['internals'] for i in r['bugs']]
def _getbug(self,id):
'''Return a dict of full bug info for the given bug id'''
return self._getbugs([id])[0]
- def _getbugsimple(self,id):
- '''Return a short dict of simple bug info for the given bug id'''
- # Bugzilla3 doesn't have this
- return self._getbug(id)
+ # Bugzilla3 doesn't have getbugsimple - alias to the full method(s)
+ _getbugsimple = _getbug
+ _getbugssimple = _getbugs
def _query(self,query):
'''Query bugzilla and return a list of matching bugs.