Modify

Opened 3 years ago

Last modified 3 years ago

#9664 new enhancement

Support for agilo tickets

Reported by: tsecen@… Owned by: coling
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 (1)

comment:1 Changed 3 years ago by tsecen at fly.srk.fer.hr

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'

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.