Opened 6 years ago

Closed 6 years ago

#3047 closed enhancement (fixed)

Use ctxtnav API

Reported by: coderanger Owned by: JasonWinnebeck
Priority: normal Component: ShowPathPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


Rather than using a stream filter, you can just use a request filter (post-request) and alter the value in['ctxtnav'].

Attachments (0)

Change History (3)

comment:1 Changed 6 years ago by JasonWinnebeck

Thanks for the suggestion...

Would this remove the dependency on Genshi 0.5?

What is the plugin interface name for a plugin that would do what you said above, or would this still be a ITemplateStreamFilter? And for your idea is this something that is available in Trac 0.10, or 0.11 only?

comment:2 Changed 6 years ago by coderanger

This doesn't require Genshi 0.5, but it does require a recent version (>=beta2) of 0.11. Trac 0.11-final will require Genshi 0.5 anyway, so don't consider that a problematic dependency. The extension point to look at is IRequestFilter, specifically its post_process_request function. You can use the template debugger in the developer plugin to see how the ctxtna data is structured, or look at the add_ctxtnav function in

comment:3 Changed 6 years ago by JasonWinnebeck

  • Resolution set to fixed
  • Status changed from new to closed

(In [3702]) Closes #3047, rewritten to use IRequestFilter API, probably is more efficient now

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.