mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-15 18:16:13 +01:00
implement a submitreq 'accept' action, resulting in the respective state change
This commit is contained in:
parent
8fc20cfc74
commit
241f528dc4
@ -456,7 +456,9 @@ class Osc(cmdln.Cmdln):
|
|||||||
|
|
||||||
# accept
|
# accept
|
||||||
elif cmd == 'accept':
|
elif cmd == 'accept':
|
||||||
print 'not implemented yet.'
|
r = change_submit_request_state(conf.config['apiurl'],
|
||||||
|
reqid, 'accepted', opts.message or '')
|
||||||
|
print r
|
||||||
|
|
||||||
|
|
||||||
# editmeta and its aliases are all depracated
|
# editmeta and its aliases are all depracated
|
||||||
|
@ -1772,7 +1772,7 @@ def get_submit_request_list(apiurl, project, package):
|
|||||||
for root in collection.findall('request'):
|
for root in collection.findall('request'):
|
||||||
r = SubmitReq()
|
r = SubmitReq()
|
||||||
r.read(root)
|
r.read(root)
|
||||||
if r.state.name not in ['declined', 'deleted']:
|
if r.state.name not in ['accepted', 'declined', 'deleted']:
|
||||||
requests.append(r)
|
requests.append(r)
|
||||||
|
|
||||||
return requests
|
return requests
|
||||||
|
Loading…
Reference in New Issue
Block a user