mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-22 21:16:16 +01:00
- move declined requests in "my rq" to the bottom
This commit is contained in:
parent
bede808271
commit
89edcc32ec
@ -5691,22 +5691,6 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
# try api side search as supported since OBS 2.2
|
||||
try:
|
||||
requests = []
|
||||
# declined requests submitted by me
|
||||
u = makeurl(apiurl, ['request'], {
|
||||
'view' : 'collection',
|
||||
'states': 'declined',
|
||||
'roles': 'creator',
|
||||
'user' : user,
|
||||
})
|
||||
f = http_GET(u)
|
||||
root = ET.parse(f).getroot()
|
||||
if root.findall('request'):
|
||||
print "Declined requests created by you (revoke, reopen or supersede):\n"
|
||||
for node in root.findall('request'):
|
||||
r = Request()
|
||||
r.read(node)
|
||||
print r.list_view(), '\n'
|
||||
print ""
|
||||
# open reviews
|
||||
u = makeurl(apiurl, ['request'], {
|
||||
'view' : 'collection',
|
||||
@ -5740,6 +5724,22 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
r.read(node)
|
||||
print r.list_view(), '\n'
|
||||
print ""
|
||||
# declined requests submitted by me
|
||||
u = makeurl(apiurl, ['request'], {
|
||||
'view' : 'collection',
|
||||
'states': 'declined',
|
||||
'roles': 'creator',
|
||||
'user' : user,
|
||||
})
|
||||
f = http_GET(u)
|
||||
root = ET.parse(f).getroot()
|
||||
if root.findall('request'):
|
||||
print "Declined requests created by you (revoke, reopen or supersede):\n"
|
||||
for node in root.findall('request'):
|
||||
r = Request()
|
||||
r.read(node)
|
||||
print r.list_view(), '\n'
|
||||
print ""
|
||||
return
|
||||
except urllib2.HTTPError, e:
|
||||
if e.code == 400:
|
||||
|
Loading…
Reference in New Issue
Block a user