Hi David,

It's supposed to be the name. "Git" would be appropriate. Where do you see
that an integer is required?

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


On Sun, Mar 13, 2011 at 4:31 AM, David Solbach <d...@vidsolbach.de> wrote:

> Hi,
>
> I try to create a repository via the web API with the attached python
> script.
> It seems that reviewboard complains about the value I used for the tool
> parameter (2). I also tried "Git" but an integer is required. I got the 2
> from
> the ID column of the scmtools_tool table. Is that not correct?
>
>
> Below is the output of the script:
>
> ---
> [david@katze RB Script]$ ./create_repo.py nepomukannotation
> DEBUG - Establishing connection
> DEBUG - request body:
>
> name=nepomukannotation&path=/var/git/nepomukannotation/.git&mirror_path=git://
> anongit.kde.org/nepomukannotation&bug_tracker=http://bugs.kde.org/show_bug.cgi?id=%s&tool=2
> DEBUG - Sending create repo request
> {u'body': u'{"fields": {"tool": ["This is not a valid SCMTool"]}, "stat":
> "fail", "err": {"msg": "One or more fields had errors", "code": 105}}',
> u'headers': {'status': '400', 'content-length': '131', 'via': '1.1
> varnish',
> 'content-language': 'en-us', 'set-cookie':
> 'rbsessionid=cc9d61fbd49bb791c8a7a0b68647b4c1; expires=Mon, 12-Mar-2012
> 11:24:32 GMT; Max-Age=31536000; Path=/', 'age': '0', 'expires': 'Sun, 13
> Mar
> 2011 11:24:32 GMT', 'vary': 'Accept,Cookie,Accept-Language', 'server':
> 'Apache/2.2.14 (Ubuntu)', 'last-modified': 'Sun, 13 Mar 2011 11:24:32 GMT',
> 'connection': 'keep-alive', 'x-varnish': '1701373475', 'etag':
> '"ac5c7a82e994cf5e4c126782aa2b7eac"', 'cache-control': 'max-age=0', 'date':
> 'Sun, 13 Mar 2011 11:24:32 GMT', 'content-type': 'application/json'}}
> ERROR - An error occurred while accessing Reviewboard.
> ERROR - One or more fields had errors
> [david@katze RB Script]$
> ---
>
> Any hints what I'm doing wrong here?
>
> Best regards,
>
> David
>
> --
> Want to help the Review Board project? Donate today at
> http://www.reviewboard.org/donate/
> Happy user? Let us know at http://www.reviewboard.org/users/
> -~----------~----~----~----~------~----~------~--~---
> To unsubscribe from this group, send email to
> reviewboard+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/reviewboard?hl=en

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Reply via email to