Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dirkmueller
pybugz
pybugz-search-improvement.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pybugz-search-improvement.patch of Package pybugz
--- bugz.py.orig 2006-12-12 14:44:37.000000000 +0100 +++ bugz.py 2006-12-12 16:16:19.000000000 +0100 @@ -77,6 +77,8 @@ 'keywords': '', 'dependson':'', 'blocked':'', + 'product':'', + 'resolution':'fixed', 'component': 'Ebuilds', # needs to be filled in 'bug_file_loc': '', @@ -674,7 +676,8 @@ def search(self, query, comments = False, order = 'number', assigned_to = None, reporter = None, cc = None, whiteboard = None, keywords = None, - status = [], severity = [], priority = [], component = []): + status = [], severity = [], priority = [], + resolution = [], product = [], component = []): """Search bugzilla for a bug. @param query: query string to search in title or {comments}. @@ -705,6 +708,10 @@ @type comments: bool @keyword component: search within components. empty means all. @type component: list + @keyword product: search within products. empty means all. + @type product: list + @keyword resolution: search for closed bugs with given resolution. empty means all. + @type product: list @return: list of bugs, each bug represented as a dict @rtype: list of dicts @@ -724,6 +731,8 @@ else: qparams['bug_status'] = ['NEW', 'ASSIGNED', 'REOPENED'] qparams['component'] = component or '' + qparams['product'] = product or '' + qparams['resolution'] = resolution or '' qparams['status_whiteboard'] = whiteboard or '' qparams['keywords'] = keywords or '' @@ -858,7 +867,7 @@ FIELDS = ('bug_file_loc', 'bug_severity', 'short_desc', 'bug_status', 'status_whiteboard', 'keywords', 'op_sys', 'priority', 'version', 'target_milestone', - 'assigned_to', 'rep_platform', 'product', 'component') + 'assigned_to', 'rep_platform', 'product', 'component', 'resolution') FIELDS_MULTI = ('blocked', 'dependson') @@ -1208,6 +1217,11 @@ help = 'Search comments instead of title'), 'component': make_option('-C', '--component', action='append', help = 'Restrict by component (1 or more)'), + 'product': make_option('-P', '--product', action='append', + help = 'Restrict by product (1 or more)'), + 'resolution': make_option('-R', '--resolution', action='append', + choices = config.choices['resolution'].keys(), + help = 'Restrict by given resolution(1 or more)'), 'keywords': make_option('-k', '--keywords', help = 'Bug keywords'), 'whiteboard': make_option('-w', '--whiteboard', help = 'Status whiteboard'), @@ -1246,6 +1260,8 @@ MORE_FIELDS = ( ('component', 'Component'), + ('product', 'Product'), + ('resolution', 'Resolution'), ('status_whiteboard', 'Whiteboard'), ('keywords', 'Keywords'), )
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor