> I'm implementing code listening on ITicketChangeListener interface calls.
> I would like to call add_warning in addition to logging just in case if
> something go wrong inside the method. The add_warning method requires
> request object that is not provided by ITicketChangeListener.
>
> Is there another way to obtain request object other than get it as
> parameter?

I don't know but there may be a problem that the ticket change
listener may not be called within the context of a web page.  Any code
which calls Ticket.save_changes() (?) will ultimately invoke
ITicketChangeListener methods.  Perhaps add_warning() can handle a
null request.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to trac-dev@googlegroups.com.
To unsubscribe from this group, send email to 
trac-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en.

Reply via email to