Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 587482 Details for
Bug 825358
value0-0-0 is not a valid parameter for the Bugzilla::Bug::match function
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
example script
bz-query.py (text/plain), 1.24 KB, created by
Jeff Bastian
on 2012-05-29 18:42:17 UTC
(
hide
)
Description:
example script
Filename:
MIME Type:
Creator:
Jeff Bastian
Created:
2012-05-29 18:42:17 UTC
Size:
1.24 KB
patch
obsolete
>#!/usr/bin/python -tt ># vim: expandtab tabstop=4 shiftwidth=4 softtabstop=4 > >import bugzilla >import sys >import logging >from datetime import datetime > >def timestamp(): > now = datetime.now() > ts = "[%02d:%02d:%02d]" % (now.hour, now.minute, now.second) > return ts > >logging.basicConfig() >log = logging.getLogger("bugzilla") >log.setLevel(logging.INFO) > >BZURL = 'https://bugzilla.redhat.com/xmlrpc.cgi' >BZ = bugzilla.RHBugzilla4(url=BZURL) > ># set username and password in ~/.bugzillarc with format: ># ># [bugzilla.redhat.com] ># user = user@example.com ># password = mypassword ># >BZ.readconfig() >if BZ.login(): > print "%s Logged into bugzilla" % (timestamp()) >else: > sys.exit(-1) > >print "%s Formulating query" % (timestamp()) >query = dict() >query['query_format'] = 'advanced' >query['bug_status'] = [ 'NEW', 'ASSIGNED' ] >query['product'] = [ 'Fedora' ] >query['f1'] = 'keywords' >query['o1'] = 'substring' >query['v1'] = 'Patch' >query['include_fields'] = [ 'bug_id', 'component', 'short_desc' ] > >print "%s Making query" % (timestamp()) >results = BZ.query(query) > >#import pdb; pdb.set_trace() > >print "%s Printing report" % (timestamp()) >for r in results: > output = "%s %s %s" % (r.bug_id, r.component[0], r.short_desc) > print "%s %s" % (timestamp(), output)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 825358
:
586932
|
586942
|
586947
| 587482