Comment
¶
Changed in version 0.3.
-
class
bugsy.
Comment
(bugsy=None, **kwargs)[source]¶ Represents a single Bugzilla comment.
To get comments you need to do the following
>>> bugs = bugzilla.search_for.keywords("checkin-needed").search() >>> comments = bugs[0].get_comments() >>> # Returns the comment 0 of the first checkin-needed bug >>> comments[0].text
Add tags to the comments
-
attachment_id
¶ If the comment was made on an attachment, return the ID of that attachment. Otherwise it will return None.
Return the login name of the comment’s author.
-
bug_id
¶ Return the ID of the bug that this comment is on.
-
creation_time
¶ Return the time (in Bugzilla’s timezone) that the comment was added.
-
creator
¶ Return the login name of the comment’s author.
-
id
¶ Return the comment id that is associated with Bugzilla.
-
is_private
¶ Return True if this comment is private (only visible to a certain group called the “insidergroup”).
Add tags to the comments
Return a set of comment tags currently set for the comment.
-
text
¶ Return the text that is in this comment
>>> comment.text # David really likes cheese apparently
-
time
¶ This is exactly same as
creation_time
.For compatibility, time is still usable. However, please note that time may be deprecated and removed in a future release.
Prefer
creation_time
instead.