Hi,

I have just upgraded to Agilo 1.3.0.3 and Trac Import stopped working.

The problem is that Agilo assumes it controls the Ticket class, but
Trac Import has its own PatchedTicket, which does not have the
`is_writable_field()` method. Thus importing tickets fails in
changelistener.py, line 44. I have patched the method
`_is_relevant_for_burndown` as follows::

    def _is_relevant_for_burndown(self, ticket):
        # XXX: If the ticket is missing the `is_writable_field`
method, don't
        #      call it.
        has_fields = False
        if hasattr(ticket, 'is_writable_field'):
            has_fields = ticket.is_writeable_field(Key.SPRINT) and \
                         ticket.is_writeable_field(Key.REMAINING_TIME)
        has_values = ticket[Key.SPRINT] and ticket[Key.REMAINING_TIME]
        return bool(has_fields and has_values)

Regards,
Stephan

-- 
Follow Agilo on Twitter: http://twitter.com/agiloforscrum
Please support us by reviewing and voting on: 
http://userstories.com/products/8-agilo-for-scrum 
http://ohloh.net/p/agilo-scrum 
http://freshmeat.net/projects/agiloforscrum

You have received this message because you are subscribed to
the "Agilo for Scrum" Google Group. This group is focused on
supporting Agilo for Scrum users and is moderated by
agile42 GmbH <http://www.agile42.com>.

To post to this group, send email to [email protected]
To unsubscribe from this group, send an email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/agilo

Reply via email to