IttecoTracPlugin icon indicating copy to clipboard operation
IttecoTracPlugin copied to clipboard

TypeError: milestone_stats_data() takes at least 4 arguments (3 given)

Open shentonfreude opened this issue 15 years ago • 2 comments

I'm using Trac-0.12, perhaps this is the issue. This patch fixes it:

diff --git a/itteco/ticket/roadmap.py b/itteco/ticket/roadmap.py index f85002c..3d76f8e 100644 --- a/itteco/ticket/roadmap.py +++ b/itteco/ticket/roadmap.py @@ -680,6 +680,7 @@ class IttecoRoadmapModule(RoadmapModule): stat = SelectionTicketGroupStatsProvider(self.env).get_ticket_group_stats(tickets, calc_on) stats.append( milestone_stats_data(

  •                self.env,
                 req, stat, [m.name for m in _get_milestone_with_all_kids(milestone)]))
    
     if requested_fmt=='json':
    

shentonfreude avatar Jun 22 '10 16:06 shentonfreude

In latest 0.2.6 its in Line 744 and following

snoopotic avatar Nov 13 '11 14:11 snoopotic

On Sun, Nov 13, 2011 at 9:14 AM, snoopotic < [email protected]

wrote:

seems your patch does not fit in latest 0.2.6. A I right?

I'm sorry, I haven't been keeping up with IttecoTracPlugin. I thought it applied when I submitted it, but have no idea if it does with that version. Sorry I can't provide any more help.

shentonfreude avatar Nov 14 '11 14:11 shentonfreude