Modify

Opened 12 years ago

Last modified 7 years ago

#9664 new enhancement

Support for agilo tickets

Reported by: chense Owned by:
Priority: normal Component: WorkLogPlugin
Severity: normal Keywords: Agilo for trac
Cc: Trac Release: 0.12

Description

Agilo for Trac defines its own ticket system (while disabling built in ticket API), and when trying to start/stop work for an Agilo ticket, I get AttributeError: 'Ticket' object has no attribute 'is_writeable_field'

I think this is similar to http://trac.edgewall.org/ticket/9452.

So, what can be done to fix this cleanly, rather than using Agilo ticket objects?

Attachments (0)

Change History (2)

comment:1 Changed 12 years ago by chense

Trackback:

  File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/web/main.py", line 513, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/web/main.py", line 235, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/local/lib/python2.6/dist-packages/worklog-0.2-py2.6.egg/worklog/webui.py", line 147, in process_request
    if not mgr.stop_work(stoptime, comment):
  File "/usr/local/lib/python2.6/dist-packages/worklog-0.2-py2.6.egg/worklog/manager.py", line 223, in stop_work
    self.save_ticket(tckt, message)
  File "/usr/local/lib/python2.6/dist-packages/worklog-0.2-py2.6.egg/worklog/manager.py", line 77, in save_ticket
    tckt.save_changes(self.authname, msg, nowdt, None, cnum+1)
  File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/ticket/model.py", line 353, in save_changes
    listener.ticket_changed(self, comment, author, old_values)
  File "/usr/local/lib/python2.6/dist-packages/binary_agilo-1.3.5_PRO-py2.6.egg/agilo/scrum/burndown/changelistener.py", line 70, in ticket_changed
    current_sprint_name = self._current_sprint_name(ticket)
  File "/usr/local/lib/python2.6/dist-packages/binary_agilo-1.3.5_PRO-py2.6.egg/agilo/scrum/burndown/changelistener.py", line 120, 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.5_PRO-py2.6.egg/agilo/scrum/burndown/changelistener.py", line 129, in _current_value
    if not ticket.is_writeable_field(fieldname) or not ticket[fieldname]:
AttributeError: 'Ticket' object has no attribute 'is_writeable_field'

comment:2 Changed 7 years ago by Ryan J Ollos

Owner: Colin Guthrie deleted

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.