Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

#10092 closed defect (invalid)

AttributeError: 'Ticket' object has no attribute 'is_writeable_field'

Reported by: carlos.leguizamon Owned by:
Priority: normal Milestone:
Component: general Version: 0.11.7
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

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'6b1b5ed159d626d407e1dbfc',
 'batchmod': u'Change tickets',
 'bmod_flag_tf_status': u'on',
 'bmod_value_tf_status': u'Ready for QC',
 'col': [u'id',
         u'summary',
         u'dev_status',
         u'tf_status',
         u'status',
         u'type',
         u'priority',
         u'version',
         u'severity'],
 'selectedTickets': u'450,429'}

User Agent was: Mozilla/5.0 (Windows; U; Windows NT 6.1; es-ES; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15

System Information

Trac 0.11.7
Python 2.4.3 (#1, Jan 21 2009, 01:10:13)
[GCC 4.1.2 20071124 (Red Hat 4.1.2-42)]
setuptools 0.6c9
SQLite 3.3.6
pysqlite 2.3.3
Genshi 0.5.1
mod_wsgi 2.5 (WSGIProcessGroup trac WSGIApplicationGroup %{GLOBAL})
Pygments 1.0
Agilo 0.9.3
Subversion 1.6.2 (r37639)
RPC 1.0.6
FullBlog 0.1.1-r0
jQuery: 1.2.6

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/web/main.py", line 450, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/web/main.py", line 176, in dispatch
    chosen_handler)
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/web/main.py", line 296, in _pre_process_request
    chosen_handler = filter_.pre_process_request(req, chosen_handler)
  File "build/bdist.linux-i686/egg/batchmod/web_ui.py", line 37, in pre_process_request
  File "build/bdist.linux-i686/egg/batchmod/web_ui.py", line 75, in _batch_modify
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/ticket/model.py", line 299, in save_changes
    listener.ticket_changed(self, comment, author, old_values)
  File "/usr/lib/python2.4/site-packages/agilo-0.9.3-py2.4.egg/agilo/scrum/burndown/changelistener.py", line 69, in ticket_changed
    current_sprint_name = self._current_sprint_name(ticket)
  File "/usr/lib/python2.4/site-packages/agilo-0.9.3-py2.4.egg/agilo/scrum/burndown/changelistener.py", line 119, in _current_sprint_name
    return self._current_value(Key.SPRINT, ticket) or None
  File "/usr/lib/python2.4/site-packages/agilo-0.9.3-py2.4.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'

Attachments (0)

Change History (1)

comment:1 by osimons, 14 years ago

Resolution: invalid
Status: newclosed

Trac does not handle POST requests for its Query module, so this is PluginIssue.

Using both th:BatchModifyPlugin and AgiloForScrum could certainly yield some interesting results and states… Try the Agilo mailing list for experience with this.

Anyway, it is not an issue for Trac itself.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.