Thanks :)

Am Mittwoch, 31. Oktober 2012 17:57:56 UTC+1 schrieb RjOllos:
>
> 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:
> http://trac-hacks.org/browser/quietplugin/0.12/quiet/web_ui.py
>
>

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/trac-users/-/9eLMnCSqXskJ.
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-users?hl=en.

Reply via email to