Hi, On Mar 5, 1:14 pm, Ethan Jucovy <ethan.juc...@gmail.com> wrote: > On Tue, Mar 5, 2013 at 6:59 AM, Filipe Correia <fcorr...@gmail.com> wrote: > > The issue is, I need to implement these extensions points in two > > distinct Component classes. But when I split the Component class in > > two (one for each extension point) the "get_active_navigation_item()" > > is no longer called, so the item that I'm adding to the mainnav no > > longer shows highlighted... > > This sounds a lot like http://trac.edgewall.org/ticket/9528.
Indeed! > I haven't refreshed my memory lately, but I think the best/only workaround > is to delay your add_script() calls somehow until post_process_request(), > perhaps by setting some state on your component or on the request object > itself (but **not** on request.chrome!) during process_request() and then > checking for that state in post_process_request(). Ok, I see. I think I'll keep IRequestHandler and INavigationContributor in the same Component, even though it implies other issues for my plugin, but it seems like the cleanest solution (even if not necessarily very clean :) > More eyes on #9528 would be great too, if you want to try coming up with a > better patch. :-) :) I don't think I will be able to, not for the next couple of months at least, but it's good to know someone already figured out what's causing this. Thank you Ethan! Filipe -- You received this message because you are subscribed to the Google Groups "Trac Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-dev+unsubscr...@googlegroups.com. To post to this group, send email to trac-dev@googlegroups.com. Visit this group at http://groups.google.com/group/trac-dev?hl=en. For more options, visit https://groups.google.com/groups/opt_out.