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

Am Dienstag, 30. Oktober 2012 18:28:16 UTC+1 schrieb RjOllos:
>
> On Tuesday, October 30, 2012 5:42:48 AM UTC-7, Cybernium wrote:
>
>> Hi,
>> as mentioned in the tittle, I'm trying to stop the flow of my algorithm 
>> to display a warning message
>> and wait until the user response ...! is it possible to implement that ?
>>
>
> It depends what you mean by "wait until the user response". If you want 
> blocking behavior, then one (maybe the only?) option is to use a JavaScript 
> dialog.
>  
>
>> I saw that there was  something like that in trac.web.chrome.add_warning(
>> *req*, *msg*, **args*) but
>> I don't have any idea how to implement that  ?
>
>
> What interfaces does your plugin implement? If you are IRequestHandler or 
> IRequestFilter, among others, you can add the following in process_request 
> or post_process_request:
>
> from trac.web.chrome import add_warning
> add_warning(req, "Warning message goes here")
>

-- 
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/-/QD7YMQXXusUJ.
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