'Should only have a ticket if it is broken,
but won\'t always have a ticket to display.'

def the_ticket(self, html):

    if hasattr(self, 'ticket'):
        if html:
            return ('<a    href=%s    target="_blank">Ticket</a>' % self.ticket)
        else:
            return ('Ticket:    %s' % self.ticket)
    return 'no    ticket'
