Total Complexity | 1 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | # -*- coding: utf-8 -*- |
||
2 | """ |
||
3 | Helper functions which facilitate actual communications with Bugzilla. |
||
4 | """ |
||
5 | from tcms.issuetracker.base import IntegrationThread |
||
6 | |||
7 | |||
8 | class BugzillaThread(IntegrationThread): |
||
9 | """ |
||
10 | Execute Bugzilla RPC code in a thread! |
||
11 | |||
12 | Executed from the IssueTracker interface methods. |
||
13 | """ |
||
14 | def post_comment(self): |
||
15 | self.rpc.update_bugs(self.bug_id, {'comment': {'comment': self.text(), |
||
16 | 'is_private': False}}) |
||
17 |