summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2007-09-12 17:21:09 -0400
committerWill Woods <wwoods@redhat.com>2007-09-12 17:21:09 -0400
commit5320875ff9c6708a91ab70464b0bd5b25bb77805 (patch)
tree64aabd7609d160252209cd3fe6976f070955c269
parent82fbd8a1befdcfb57a94bc57a7089986eaefd695 (diff)
downloadpython-bugzilla-5320875ff9c6708a91ab70464b0bd5b25bb77805.tar.gz
python-bugzilla-5320875ff9c6708a91ab70464b0bd5b25bb77805.tar.xz
python-bugzilla-5320875ff9c6708a91ab70464b0bd5b25bb77805.zip
fix refreshattr
-rw-r--r--bugzilla.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/bugzilla.py b/bugzilla.py
index 08d0cc8..6e4b8a7 100644
--- a/bugzilla.py
+++ b/bugzilla.py
@@ -468,7 +468,7 @@ class Bug(object):
def refreshattr(self,name):
delattr(self,name)
- r = self.bugzilla.query({'bug_id':self.bug_id,'column_list':[name]})
+ r = self.bugzilla._query({'bug_id':self.bug_id,'column_list':[name]})
self.__dict__.update(r['bugs'][0])
return self.__dict__[name]
@@ -483,10 +483,6 @@ class Bug(object):
(append,prepend,overwrite) with the given text on the given whiteboard
for the given bug.'''
self.bugzilla._updatewhiteboard(self.bug_id,text,which,action)
- # NOTE: right now we don't get to the refreshattr here, because the
- # server is throwing an XMLRPC fault on _updatewhiteboard.
- # It still *works* - you can manually refresh and see the change - but
- # for some reason it's complaining. Might be a bugzilla bug.
self.refreshattr("%s_whiteboard" % which)
def appendwhiteboard(self,text,which='status'):
'''Append the given text (with a space before it) to the given