Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dirkmueller
pybugz
pybugz-search-changedsince.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pybugz-search-changedsince.diff of Package pybugz
--- bugz.py +++ bugz.py @@ -676,7 +676,7 @@ def search(self, query, comments = False, order = 'number', assigned_to = None, reporter = None, cc = None, whiteboard = None, keywords = None, - status = [], severity = [], priority = [], + status = [], severity = [], priority = [], changedsince=[], resolution = [], product = [], component = []): """Search bugzilla for a bug. @@ -711,7 +711,9 @@ @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 + @type resolution: list + @keyword changedsince: only respect bugs changed since given time. + @type changedsince: string @return: list of bugs, each bug represented as a dict @rtype: list of dicts @@ -735,6 +737,10 @@ qparams['resolution'] = resolution or '' qparams['status_whiteboard'] = whiteboard or '' qparams['keywords'] = keywords or '' + if changedsince: + qparams['chfieldfrom'] = changedsince + qparams['chfieldto'] = "Now" + qparams['chfieldvalue'] = '' # hoops to jump through for emails, since there are # only two fields, we have to figure out what combinations @@ -1225,6 +1231,7 @@ 'keywords': make_option('-k', '--keywords', help = 'Bug keywords'), 'whiteboard': make_option('-w', '--whiteboard', help = 'Status whiteboard'), + 'changedsince': make_option('--changedsince', help = 'Only include changed since') }
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