summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2008-08-25 13:09:41 -0400
committerWill Woods <wwoods@redhat.com>2008-08-25 13:09:41 -0400
commitdcbd893cbc7b4104545fcfc1e49fe9f72ed407c4 (patch)
treeacebbf20263f44ec30b91c23611d29176aa94f4b
parent2d8243e272243ed0692db47a53f3b939a8440b13 (diff)
downloadpython-bugzilla-dcbd893cbc7b4104545fcfc1e49fe9f72ed407c4.tar.gz
python-bugzilla-dcbd893cbc7b4104545fcfc1e49fe9f72ed407c4.tar.xz
python-bugzilla-dcbd893cbc7b4104545fcfc1e49fe9f72ed407c4.zip
Comment cleanups and extra debugging info
-rw-r--r--bugzilla/__init__.py6
-rw-r--r--bugzilla/base.py1
-rw-r--r--bugzilla/bugzilla3.py6
3 files changed, 8 insertions, 5 deletions
diff --git a/bugzilla/__init__.py b/bugzilla/__init__.py
index 0bab22e..ebc8bb4 100644
--- a/bugzilla/__init__.py
+++ b/bugzilla/__init__.py
@@ -11,6 +11,7 @@
from bugzilla3 import Bugzilla3, Bugzilla32
from rhbugzilla import RHBugzilla, RHBugzilla3
+from base import version
import xmlrpclib
import logging
log = logging.getLogger("bugzilla")
@@ -55,10 +56,13 @@ class Bugzilla(object):
'''Magical Bugzilla class that figures out which Bugzilla implementation
to use and uses that.'''
def __init__(self,**kwargs):
+ log.debug("Bugzilla v%s initializing" % base.version)
if 'url' in kwargs:
+ log.debug("Choosing implementation for %s" % kwargs['url'])
c = getBugzillaClassForURL(kwargs['url'])
if c:
self.__class__ = c
c.__init__(self,**kwargs)
- log.debug("Using Bugzilla subclass: %s" % c.__name__)
+ log.debug("Using Bugzilla subclass %s v%s" % \
+ (c.__name__,c.version))
# FIXME no url? raise an error or something here, jeez
diff --git a/bugzilla/base.py b/bugzilla/base.py
index a189e8f..03c8e82 100644
--- a/bugzilla/base.py
+++ b/bugzilla/base.py
@@ -984,5 +984,6 @@ class Bug(object):
def deletecc(self,cclist,comment=''):
'''Removes the given email addresses from the CC list for this bug.'''
self.bugzilla.updatecc(self.bug_id,cclist,'delete',comment)
+# TODO: attach(), getflag(), setflag()
# TODO: add a sync() method that writes the changed data in the Bug object
# back to Bugzilla?
diff --git a/bugzilla/bugzilla3.py b/bugzilla/bugzilla3.py
index ea017e5..41a3440 100644
--- a/bugzilla/bugzilla3.py
+++ b/bugzilla/bugzilla3.py
@@ -128,11 +128,9 @@ class Bugzilla32(Bugzilla3):
'''Add a comment to the bug with the given ID. Other optional
arguments are as follows:
private: if True, mark this comment as private.
- timestamp: comment timestamp, in the form "YYYY-MM-DD HH:MM:SS"
- Ignored by BZ32.
+ timestamp: Ignored by BZ32.
worktime: amount of time spent on this comment, in hours
- bz_gid: if present, and the entire bug is *not* already private
- to this group ID, this comment will be marked private.
+ bz_gid: Ignored by BZ32.
'''
return self._proxy.Bug.add_comment({'id':id,
'comment':comment,