This module allows remote access to Bugzilla. It wraps XML interface to read Bugzilla and SOAP service for writing to Bugzilla.
Base class for all Bugzilla errors.
Operation was not permitted by Bugzilla.
Bug was not found.
Bug ID is invalid.
Failed to connect to bugzilla.
Login failed.
The search result is too long.
Error while updating bugzilla field.
| Parameters: | bug_et (ElementTree instance) – Data obtained from XML interface |
|---|
This class holds all data for single bug from Bugzilla. All XML elements are parsed to the Bug class attributes, so you can access them like bug.bug_severity.
| Parameters: |
|
|---|
Bugzilla communication class for read only access. With iChain authentication. The authentication part is expensive so it is good idea to remember authentication cookies and reuse them as much as possible. It is subclass of suseapi.browser.WebScraper.
| Throws: | BugzillaLoginFailed in case login fails. |
|---|
Performs login to Bugzilla.
| Parameters: |
|
|---|---|
| Returns: | Bug data |
| Return type: | Bug instance |
Reads single bug from Bugzilla.
| Parameters: |
|
|---|---|
| Returns: | Bug data |
| Return type: | list of Bug instances |
Reads list of bugs from Bugzilla.
| Parameters: | params (list of tuples) – URL parameters for search |
|---|---|
| Returns: | List of bug ids |
| Return type: | list of integers |
| Throw: | BuglistTooLarge in case search result is too long. |
Searches for bugs matching given criteria, you can construct the query based on the bugzilla web interface.
| Parameters: | startdate (datetime instance) – Date from which to search. |
|---|---|
| Returns: | List of bug ids |
| Return type: | list of integers |
| Throw: | BuglistTooLarge in case search result is too long. |
Gets list of bugs modified since defined date.
| Returns: | List of bug ids |
|---|---|
| Return type: | list of integers |
| Throw: | BuglistTooLarge in case search result is too long. |
Searches for bugs with openL3 in whiteboard.
| Returns: | List of bug ids |
|---|---|
| Return type: | list of integers |
| Throw: | BuglistTooLarge in case search result is too long. |
Searches for open bugs with L3: in summary.
| Parameters: | bugid (integer) – Bug id |
|---|---|
| Return type: | list of integers |
Returns list of SRs associated with given bug.
| Parameters: | bugid (integer) – Bug id |
|---|
Updates single bug in bugzilla.
Wrapper around suseapi.bugzilla.Bugzilla class to use HTTP authentization instead of iChain.
Wrapper around suseapi.bugzilla.APIBugzilla class to use Django logging.
| Return type: | object |
|---|---|
| Returns: | DjangoBugzilla instance |
Constructs DjangoBugzilla objects with cookie persistence in Django cache, so the there is no need to login on every request.