Silk,

thank you vfery much for your quick answer!

I did three updates, and II managed to make it work, thanks to you!

i have an additional question, as I think I found another error, but I
am not sure...

at line 380, i did the following change:


            for group in groups:
                group_tickets = [t for t in tickets if t[by] == group]
                if not group_tickets:
                    continue

                gstat = get_ticket_stats(self.stats_provider, group_tickets)
                if gstat.count > max_count:
                    max_count = gstat.count

                group_stats.append(gstat)

                gs_dict = {'name': group}
-               gs_dict.update(milestone_stats_data(req, gstat, milestone.name,
-                                                   by, group))
+               gs_dict.update(milestone_stats_data(self.env, req,
gstat, milestone.name),
+                                                   by, group)
                milestone_groups.append(gs_dict)

however, the "by, group)" ending does not look good to me, but I am
not at all an expert..

What do you think?

thank you,
Bogdan


On Wed, Dec 30, 2009 at 5:24 PM, Grzegorz Sobanski <[email protected]> wrote:
> * Bogdan Stanciu <[email protected]> [2009-12-30 16:36]:
>> I know this is about a plugin, but i have no clue where I could ask:-))
>>
>> I installed the Itteco plugin, everything works fine, but the roadmad
>> page loads only if there are no milestones for the selected milestones
>> level, otherwise i get the following error:
>>
>> TypeError: milestone_stats_data() takes at least 4 arguments (3 given)
>
> API of this function chaged lately. You will need to fix the call,
> adding an Evnvironmnt object as first argument in function
> _get_milestone_with_all_kids in file itteco\ticket\roadmap.py".
>
> (From something like
> milestone_stats_data(sth, sth, sth)
> to
> milestone_stats_data(self.env, sth, sth, sth)
> )
>
> greets
> silk
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Trac Development" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/trac-dev?hl=en.
>
>
>



-- 
Bogdan Stanciu

--

You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en.


Reply via email to