Comment 7 for bug 424671

Jonathan Lange (jml) wrote :

You could do something like this:

    def getIndexForMessage(self, message):
        results = store.find(Message, Bug.message = Message.id, Bug.id = self.id).order_by(Message.datecreated)
        return list(results.values(Message.id)).index(Message.id)

(sketch)