Modify ↓
Opened 11 years ago
Closed 11 years ago
#11507 closed defect (cantfix)
AttributeError: 'Ticket' object has no attribute 'is_writeable_field'
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | 1.0.1 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I was trying to do bul update for Milestone field. Even If I select multiple tickets, it only updates one ticket at a time and throws the following error.
How to Reproduce
While doing a POST operation on /batchmodify
, Trac issued an internal error.
(please provide additional details here)
Request parameters:
{'__FORM_TOKEN': u'2b693d75378c572697e92e7e', 'action_reassign_reassign_owner': u'anand@enlightedinc.com', 'action_resolve_resolve_resolution': u'fixed', 'batchmod_submit': u'Change tickets', 'batchmod_value_comment': u'', 'batchmod_value_milestone': u'Phase 2.2', 'query_href': u'/enlightedinc/SalesApps/trac/query?status=accepted&status=assigned&status=new&status=reopened&milestone=Phase+2.1&col=id&col=summary&col=milestone&col=status&col=type&col=priority&col=component&order=priority', 'selected_tickets': u'240,243,248,261,264,267,269,271,272,274,282,283,292,280,286,287,289'}
User agent: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36
System Information
Trac | 1.0.1
|
Agilo | 0.9.10
|
Genshi | 0.7 (without speedups)
|
GIT | 1.7.9.2
|
mod_wsgi | 3.4 (WSGIProcessGroup tracagilo WSGIApplicationGroup %{GLOBAL})
|
pysqlite | 2.6.3
|
Python | 2.7.5 (default, Aug 7 2013, 22:36:23) [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)]
|
setuptools | 0.9.7
|
SQLite | 3.3.6
|
Subversion | 1.8.0 (r1490375)
|
jQuery | 1.7.2
|
Enabled Plugins
agilo | 0.9.10
|
Python Traceback
Traceback (most recent call last): File "/usr/local/virtualenv/trac-agilo/lib/python2.7/site-packages/Trac-1.0.1-py2.7.egg/trac/web/main.py", line 497, in _dispatch_request dispatcher.dispatch(req) File "/usr/local/virtualenv/trac-agilo/lib/python2.7/site-packages/Trac-1.0.1-py2.7.egg/trac/web/main.py", line 214, in dispatch resp = chosen_handler.process_request(req) File "/usr/local/virtualenv/trac-agilo/lib/python2.7/site-packages/Trac-1.0.1-py2.7.egg/trac/ticket/batch.py", line 62, in process_request new_values, comment, action) File "/usr/local/virtualenv/trac-agilo/lib/python2.7/site-packages/Trac-1.0.1-py2.7.egg/trac/ticket/batch.py", line 167, in _save_ticket_changes t.save_changes(req.authname, comment, when=when) File "/usr/local/virtualenv/trac-agilo/lib/python2.7/site-packages/Trac-1.0.1-py2.7.egg/trac/ticket/model.py", line 365, in save_changes listener.ticket_changed(self, comment, author, old_values) File "/usr/local/virtualenv/trac-agilo/lib/python2.7/site-packages/agilo-0.9.10-py2.7.egg/agilo/scrum/burndown/changelistener.py", line 111, in ticket_changed self._process_value_changed(ticket, comment, author, old_values, Key.REMAINING_TIME) File "/usr/local/virtualenv/trac-agilo/lib/python2.7/site-packages/agilo-0.9.10-py2.7.egg/agilo/scrum/burndown/changelistener.py", line 67, in _process_value_changed current_sprint_name = self._current_sprint_name(ticket) File "/usr/local/virtualenv/trac-agilo/lib/python2.7/site-packages/agilo-0.9.10-py2.7.egg/agilo/scrum/burndown/changelistener.py", line 143, in _current_sprint_name return self._current_value(Key.SPRINT, ticket) or None File "/usr/local/virtualenv/trac-agilo/lib/python2.7/site-packages/agilo-0.9.10-py2.7.egg/agilo/scrum/burndown/changelistener.py", line 152, in _current_value if not ticket.is_writeable_field(fieldname) or not ticket[fieldname]: AttributeError: 'Ticket' object has no attribute 'is_writeable_field'
Attachments (0)
Note:
See TracTickets
for help on using tickets.
PluginIssue (AgiloForScrum).