Hi,

I am trying to add a new field to a Ticket edit form with a plugin. It
should be one .py file that doesn't require any configuration. That's
why I've decided to skip custom ticket fields approach and build
plugin from scratch.
1. I used ITemplateStreamFilter.filter_stream() to add <input>s to the form
2. I used ITicketManipulator.validate_ticket() to check the data is correct

Now I need to store value of my field data if it is added or changed,
and I am puzzled. There is ITicketChangeListener interface that has
ticket_created(self, ticket) and ticket_changed(self, ticket, comment,
author, old_values) methods, but.. when I get notification about
created ticket, how to access request environment to extract my data?
There is no req variable passed to these methods.

The second thought was to use IRequestHandler, but then again - how to
get notification that a ticket is successfully created or validated
during the request?

Thanks.
--
anatoly t.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to trac-...@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