Ticket #3047 (closed enhancement: fixed)

Opened 5 years ago

Last modified 5 years ago

Use ctxtnav API

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

Description

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

Attachments

Change History

05/19/08 23:53:54 changed 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?

05/20/08 01:18:49 changed 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 trac.web.chrome.

05/20/08 21:08:34 changed by JasonWinnebeck

  • status changed from new to closed.
  • resolution set to fixed.

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


Add/Change #3047 (Use ctxtnav API)




Change Properties
Action