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

fix review state change for review by_group

This commit is contained in:
Adrian Schröter 2010-11-09 17:19:56 +01:00
parent 90325e90f4
commit 8321e41096
2 changed files with 3 additions and 3 deletions

View File

@ -1846,7 +1846,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
opts.message = edit_message()
if cmd in ['accept', 'decline', 'new']:
r = change_review_state(apiurl,
reqid, state_map[cmd], conf.get_apiurl_usr(apiurl), opts.message or '')
reqid, state_map[cmd], conf.get_apiurl_usr(apiurl), opts.group, opts.message or '')
print r
# Change state of entire request
elif cmd in ['reopen', 'accept', 'decline', 'wipe', 'revoke']:

View File

@ -3300,10 +3300,10 @@ def get_request(apiurl, reqid):
return r
def change_review_state(apiurl, reqid, newstate, by_user='', message='', supersed=''):
def change_review_state(apiurl, reqid, newstate, by_user='', by_group='', message='', supersed=''):
u = makeurl(apiurl,
['request', reqid],
query={'cmd': 'changereviewstate', 'newstate': newstate, 'by_user': by_user, 'superseded_by': supersed})
query={'cmd': 'changereviewstate', 'newstate': newstate, 'by_user': by_user, 'by_group': by_group, 'superseded_by': supersed})
f = http_POST(u, data=message)
root = ET.parse(f).getroot()
return root.attrib['code']