Hi,

I'm looking to add a simple ticket change validation to our Trac (i.e 
prevent to close the ticket if some conditions are not met).

I figured that a simple plugin implementing ITicketManipulator would be 
nice and wrote a basic one for test purpose, but it only works for 
modifications made from the web interface, and I'd like to be able to 
validate the modifications made from the trac commit hooks too.

I tried to put the extension point in the Trac PreCommitHook like it is in 
the TicketModule but it fails because CommitHook's are not Component's.

The remaining solution appears to be writing a piece of code that makes the 
validation and call it from both the pre-commit-hook and a Trac plugin 
implementing ITicketManipulator.

Or is there a better one that I didn't think of ?

thanks for your help,

Emmanuel

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-dev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to