@cached
    def milestones(self):
        milestones = {}
        for name, due, completed, description in self.env.db_query("""
                SELECT name, due, completed, description FROM milestone
                """):
            milestones[name] = (name,
                    from_utimestamp(due) if due else None,
                    from_utimestamp(completed) if completed else None,
                    description or '')
        return milestones
Dictionary containing milestone data, indexed by name.
dataset/ETHPy150Open edgewall/trac/trac/ticket/model.py/MilestoneCache.milestones