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