When posting a review with the rbt tool, an AttributeError is raised. The 
strange thing is however, that the review is created as a draft review, and 
everything seems to be ok?

The AttributeError is raised independently on which files to review.

Here is a debug output from a sample session:

$ rbt post 72214

>>> RBTools 0.6

>>> Python 2.7.5 (default, Mar  9 2014, 22:15:05) 

[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)]

>>> Running on Darwin-13.2.0-x86_64-i386-64bit

>>> Home = /Users/slf

>>> Current directory = /Users/slf/projects/dataio/dio

>>> Checking for a Subversion repository...

>>> Running: svn info --non-interactive

>>> Running: diff --version

>>> repository info: Path: https://svn.xx.xx, Base path: /dataio/trunk, 
Supports changesets: False

>>> Making HTTP GET request to http://rb.xx.xx/api/

>>> Making HTTP GET request to http://rb.xx.xx/api/info/

>>> Running: svn log -r 72214 -l 1 --xml

>>> Running: svn info --non-interactive

>>> Running: diff --version

>>> repository info: Path: https://svn.xx.xx, Base path: /dataio/trunk, 
Supports changesets: False

>>> Running: svn status --ignore-externals

>>> Running: svn diff --diff-cmd=diff --notice-ancestry -r 72213:72214

>>> Running: svn info 
integration-test/gui-selenium/src/test/java/dk/dbc/dataio/gui/client/JobsShowSeleniumIT.java

>>> Running: svn info 
integration-test/gui-selenium/src/test/java/dk/dbc/dataio/gui/client

>>> Running: svn info 
integration-test/gui-selenium/src/test/java/dk/dbc/dataio/gui

>>> Running: svn info 
integration-test/gui-selenium/src/test/java/dk/dbc/dataio

>>> Running: svn info integration-test/gui-selenium/src/test/java/dk/dbc

>>> Running: svn info integration-test/gui-selenium/src/test/java/dk

>>> Running: svn info integration-test/gui-selenium/src/test/java

>>> Running: svn info integration-test/gui-selenium/src/test

>>> Running: svn info integration-test/gui-selenium/src

>>> Running: svn info integration-test/gui-selenium

>>> Running: svn info integration-test

>>> Running: svn info 
integration-test/gui-selenium/src/test/java/dk/dbc/dataio/gui/client/JobsShowSeleniumIT.java

>>> Running: svn info 
integration-test/gui-selenium/src/test/java/dk/dbc/dataio/gui/client/JobsShowSeleniumIT.java

>>> Running: svn info 
integration-test/gui-selenium/src/test/java/dk/dbc/dataio/gui/client/JobsShowSeleniumIT.java

>>> Making HTTP GET request to http://rb.xx.xx/api/review-requests/

>>> Making HTTP POST request to http://rb.xx.xx/api/review-requests/

>>> Making HTTP GET request to 
http://rb.xx.xx/api/review-requests/1780/diffs/

>>> Making HTTP POST request to 
http://rb.xx.xx/api/review-requests/1780/diffs/

>>> Making HTTP GET request to 
http://rb.xx.xx/api/review-requests/1780/draft/

>>> Making HTTP PUT request to 
http://rb.xx.xx/api/review-requests/1780/draft/

Traceback (most recent call last):

  File "/usr/local/bin/rbt", line 8, in <module>

    load_entry_point('RBTools==0.6.dev', 'console_scripts', 'rbt')()

  File 
"/Library/Python/2.7/site-packages/RBTools-0.6.dev-py2.7.egg/rbtools/commands/main.py",
 
line 134, in main

    command.run_from_argv([RB_MAIN, command_name] + args)

  File 
"/Library/Python/2.7/site-packages/RBTools-0.6.dev-py2.7.egg/rbtools/commands/__init__.py",
 
line 422, in run_from_argv

    exit_code = self.main(*args) or 0

  File 
"/Library/Python/2.7/site-packages/RBTools-0.6.dev-py2.7.egg/rbtools/commands/post.py",
 
line 769, in main

    submit_as=self.options.submit_as)

  File 
"/Library/Python/2.7/site-packages/RBTools-0.6.dev-py2.7.egg/rbtools/commands/post.py",
 
line 606, in post_request

    return review_request.id, review_request.absolute_url

  File 
"/Library/Python/2.7/site-packages/RBTools-0.6.dev-py2.7.egg/rbtools/api/resource.py",
 
line 284, in __getattr__

    raise AttributeError

AttributeError

I am trying to make a generic script, including the above listed command. 
And the script fails because of this error...

Can any one explain to me, what is going on?

Thanx
Steen


-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to