I was doing some work recently on the DefaultCcPlugin, which adds a CC 
field to Version, and adds this CC list to the ticket /after/ it is created 
(1). The undesirable thing that happens right now is that a comment is 
added to the ticket, because TicketModel.save_changes is called in the 
method that implements ITicketChangeListener.ticket_created.

There is the unimplemented ITicketManipulator, which seems ideal for this 
(2). However, since that isn't yet functional, should I just execute SQL in the 
method that implements ITicketChangeListener.ticket_created (3)? Or is 
there a better way?

(1) 
http://trac-hacks.org/browser/defaultccplugin/trunk/defaultcc/main.py?marks=40-43#L34
(2) 
http://trac.edgewall.org/browser/trunk/trac/ticket/api.py?marks=129-131#L126
(3) 
http://trac.edgewall.org/browser/trunk/trac/ticket/api.py?marks=112-113#L108

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