【发布时间】:2015-01-09 18:51:44
【问题描述】:
我正在使用 python-bugzilla 1.1.0 pypi 编写一个 python 脚本。我很难从 Bugzilla 上的错误中获取一些标签(一些可能不受软件包支持)。这是我到目前为止的代码:
bz = bugzilla.Bugzilla(url='https://bugzilla.redhat.com/xmlrpc.cgi')
bug = bz.getbug(495561)
print bug.description #this works (it's the first comment)
我不知道如何获得其余的 cmets。我也不知道如何访问带有错误的附件。谁能帮我这个?这个包不支持cmets和下载附件吗?
【问题讨论】:
-
试试:
print dir(bug)它会告诉你它有什么属性。help(bug)也应该很有用。 -
@SteveBarnes 感谢您的帮助,所以似乎无法做我想做的事