Once the posting review request is complete

I am trying to get review id from changelist number.

So i am trying following URL get the review id


Which shows me XML output which contains the review id as '4'

but when i pass the

                self.myurl = self.rbserver +
'/api/review-requests/?changenum=%s&repository=1' % changenum
                self.urlopen = self.opener.open(self.myurl)
                self.result = simplejson.load(self.urlopen)

my self.result contains empty data

{u'total_results': 0, u'stat': u'ok', u*'review_requests': []*, u'links':
{u'self': {u'href': u'
u'method': u'GET'}, u'create': {u'href': u'
http://xxxxx.xxxxoftware.com/xxxx/api/review-requests/', u'method':

Can you somebody help me what i am missing here, it might possible i am
missing very basic thing here as i am not good in Json etc.

Thanks in advance.

On Thu, Dec 1, 2011 at 6:02 PM, jack jack <jais...@gmail.com> wrote:

> Hi Chris,
> Sorry for sending you email in person, but it is very urgent.
> I posted a review request and i got the URL, is it mandatory that i should
> publish the review request visiting the RB site then review id will be
> available?
> because my wrapper is doing some task which tries to fetch the review id
> after posting review request and while doing so i am getting error message
> IndexError: list index out of range
> But when i publish the review request and re post the request i did not
> see error message.
> Regards,
> jack

Want to help the Review Board project? Donate today at 
Happy user? Let us know at http://www.reviewboard.org/users/
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to