Opened 14 years ago
Closed 14 years ago
#10395 closed defect (cantfix)
AttributeError: 'Ticket' object has no attribute 'is_writeable_field'
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | general | Version: | 0.11.7 |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
Hi
I have a problem that when i dont use the batch modify plugin then too
when i reassign or change the status of a ticket,ticket goes to closed state. Also when i use batch modify plugin and try to change ticket status then am getting the above error. I tried
below agilo versions but still no luck :(
agilo-0.7.3.3-r1417-20090313 agilo-0.9.4 binary_agilo-1.3.4_PRO-py2.6.egg Atleast without batchmodify plugin it should work but status always gets changing to close when try to change. Can anybody help me on that?
How to Reproduce
While doing a POST operation on /query, Trac issued an internal error.
(please provide additional details here)
Request parameters:
{'__FORM_TOKEN': u'f7ddcb67fb5df9b680665e06',
'batchmod': u'Change tickets',
'bmod_flag_status': u'on',
'bmod_value_status': u'sized',
'col': [u'id',
u'summary',
u'status',
u'type',
u'priority',
u'milestone',
u'component'],
'selectedTickets': u'74',
'status': [u'',
u'accepted',
u'assigned',
u'closed',
u'new',
u'partially_sized',
u'reopened',
u'sized']}
User Agent was: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
System Information
| Trac | 0.11.7
|
| Python | 2.6.5 (r265:79063, Apr 16 2010, 14:15:55) [GCC 4.4.3]
|
| setuptools | 0.6
|
| MySQL | server: "5.1.41-3ubuntu12.10", client: "5.1.41", thread-safe: 1
|
| MySQLdb | 1.2.2
|
| Genshi | 0.5.1
|
| mod_wsgi | 2.8 (WSGIProcessGroup WSGIApplicationGroup 172.30.2.7|/projects)
|
| Agilo | 1.3.4-PRO
|
| Subversion | 1.6.6 (r40053)
|
| jQuery: | 1.2.6
|
Python Traceback
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/Trac-0.11.7-py2.6.egg/trac/web/main.py", line 450, in _dispatch_request
dispatcher.dispatch(req)
File "/usr/local/lib/python2.6/dist-packages/Trac-0.11.7-py2.6.egg/trac/web/main.py", line 176, in dispatch
chosen_handler)
File "/usr/local/lib/python2.6/dist-packages/Trac-0.11.7-py2.6.egg/trac/web/main.py", line 296, in _pre_process_request
chosen_handler = filter_.pre_process_request(req, chosen_handler)
File "/usr/local/lib/python2.6/dist-packages/BatchModify-0.2.0-py2.6.egg/batchmod/web_ui.py", line 36, in pre_process_request
self._batch_modify(req)
File "/usr/local/lib/python2.6/dist-packages/BatchModify-0.2.0-py2.6.egg/batchmod/web_ui.py", line 69, in _batch_modify
t.save_changes(req.authname, comment)
File "/usr/local/lib/python2.6/dist-packages/Trac-0.11.7-py2.6.egg/trac/ticket/model.py", line 449, in save_changes
listener.ticket_changed(self, comment, author, old_values)
File "/usr/local/lib/python2.6/dist-packages/binary_agilo-1.3.4_PRO-py2.6.egg/agilo/scrum/burndown/changelistener.py", line 69, in ticket_changed
current_sprint_name = self._current_sprint_name(ticket)
File "/usr/local/lib/python2.6/dist-packages/binary_agilo-1.3.4_PRO-py2.6.egg/agilo/scrum/burndown/changelistener.py", line 119, in _current_sprint_name
return self._current_value(Key.SPRINT, ticket) or None
File "/usr/local/lib/python2.6/dist-packages/binary_agilo-1.3.4_PRO-py2.6.egg/agilo/scrum/burndown/changelistener.py", line 128, in _current_value
if not ticket.is_writeable_field(fieldname) or not ticket[fieldname]:
AttributeError: 'Ticket' object has no attribute 'is_writeable_field'



PluginIssue. You need to file this issue against the AgiloForScrum plugin.