Bug 841809
Summary: | python-bugzilla fails to complete query | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora EPEL | Reporter: | Steve Whitehouse <swhiteho> | ||||||||
Component: | python-bugzilla | Assignee: | Will Woods <wwoods> | ||||||||
Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
Severity: | high | Docs Contact: | |||||||||
Priority: | unspecified | ||||||||||
Version: | el6 | CC: | crobinso, dcantrell, dzickus, nhosoi, nkinder, nstraz, rmeggins, sbradley, wwoods | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2012-12-30 22:11:13 UTC | Type: | Bug | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Attachments: |
|
Description
Steve Whitehouse
2012-07-20 09:30:29 UTC
Created attachment 599344 [details]
Shell script which runs python script (normally from cron)
Created attachment 599345 [details]
Python script
Note that this script needs editing to add your username and bugzilla password at the top of it, in order to make it work. For obvious reasons I removed my password and left an empty string there.
Hi Steve, I fixed your script issues. Basically there were two problems. One the 'column_list' was a string instead of an array. Not sure it worked on the old RH Bugzillas, but using an array always worked both old and new, so making that change would be recommended. The second problem was the flag stuff. The flag stuff changed in the new RH Bugzilla so it breaks your hardcoded flagtypes.name. Just easier to grab a 'flags' field in the 'column_list' and parse directly. I belive it gives the same results. Anyway I will attach a patch that has the fixes for bz.py for you to review and apply. Cheers, Don Created attachment 600834 [details]
changes to make bz.py work on bugzilla-0.7.0
This patch makes the script complete on my end. Not sure the data is correct.
Cheers,
Don
Given Don's recommended fixes, just closing this. If python-bugzilla was in the business of making all this back compat stuff continue to work we would be in a world of hurt given all the RHBZ changes going on. |