On Wednesday, October 31, 2012 1:44:35 AM UTC-7, Cybernium wrote:
Thank you for your answer.
I'm trying the javascript way. I think it will work with .
But for the sake of knowing how can implement use "post_process_request" actually more than
what does this function ? maybe it' more efficient than my actual solution.
(I'm using IRequestHandler interface )
Thanks a lot
`post_process_request` allows, among other things, for some data to be passed or a script to be added to a request that is handled by another component. If you wanted to add some javascript to the newticket page, for example, then you could do that by calling `add_script` in `post_process_request`, after checking that the `req.path_info`was "newticket".
I'd suggest studying some examples of trac-hacks. Here is one such example, which adds javascript and a contextual navigation entry to the ticket and newticket pages: