W dniu środa, 22 sierpnia 2012 03:32:16 UTC+2 użytkownik Chris Nelson 
napisał:
>
> Now and then a ticket validator or some other code I'm not sure of 
> displays a message at the top of a ticket after I commit changes.  I 
> want to do that in my plugin but I have no idea what function to use. 
> Can someone point me at an example?  Thanks! 
>
>
 from trac.web.chrome import add_notice, add_warning

and then when you are handling request, just call:

 add_notice(req, u'It was done, sir.')
 add_warning(req, u'Boo boo')

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

Reply via email to