I'm using Trac 1.0, via Apache. Installation seems to go well and differences on the changesets are shown, but when I try to submit a review on a changeset I get an internal error:
AttributeError: 'NoneType' object has no attribute 'get_changeset'
... = I substituted the path to the file.
We have multiple repositories set, but a default repository is defined.
I do not have that much experience with python, so any help would be appreciated.
How to Reproduce
While doing a POST operation on /changeset/141/moduletest/..., Trac issued an internal error.
Request parameters:
{'__FORM_TOKEN': u'6cea3ac5ccb4e7227f291cfb',
'new': u'141',
'new_path': u'/moduletest/...',
'reviewbutton': u'Submit review',
'status': u'PASSED',
'summary': u''}
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0
| Trac | 1.0
|
| Agilo | 1.3.9-pro
|
| Genshi | 0.6 (without speedups)
|
| Mercurial | 2.3.1
|
| pysqlite | 2.6.0
|
| Python | 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)]
|
| setuptools | 0.6c11
|
| SQLite | 3.6.21
|
| jQuery | 1.7.2
|
Enabled Plugins
| binary-agilo | 1.3.9-pro
|
| tracaccountmanager | 0.4
|
| traccodereviewer | 0.0.2
|
| tracmercurial | 1.0.0.3dev
|
Python Traceback
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\trac\web\main.py", line 497, in _dispatch_request
dispatcher.dispatch(req)
File "C:\Python27\lib\site-packages\trac\web\main.py", line 224, in dispatch
self._post_process_request(req, *resp)
File "C:\Python27\lib\site-packages\trac\web\main.py", line 338, in _post_process_request
resp = f.post_process_request(req, *resp)
File "build\bdist.win32\egg\coderev\web_ui.py", line 59, in post_process_request
tickets = self._update_tickets(req, review)
File "build\bdist.win32\egg\coderev\web_ui.py", line 127, in _update_tickets
changeset = repo.get_changeset(review.changeset)
AttributeError: 'NoneType' object has no attribute 'get_changeset'