1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

implement a submitreq 'accept' action, resulting in the respective state change

This commit is contained in:
Dr. Peter Poeml 2008-03-12 18:22:11 +00:00
parent 8fc20cfc74
commit 241f528dc4
2 changed files with 4 additions and 2 deletions

View File

@ -456,7 +456,9 @@ class Osc(cmdln.Cmdln):
# 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

View File

@ -1772,7 +1772,7 @@ def get_submit_request_list(apiurl, project, package):
for root in collection.findall('request'):
r = SubmitReq()
r.read(root)
if r.state.name not in ['declined', 'deleted']:
if r.state.name not in ['accepted', 'declined', 'deleted']:
requests.append(r)
return requests