Hello, I'm in the same case (Trac 0.11.4) and tested the following but it doesn't work : the ticket status doesn't change (as seen on the ticket page).
In my custom workflow, I have defined status name in French as : in_progress = accepté,assigné,rouvert -> en cours in_progress.name = en cours in_progress.permissions = TICKET_MODIFY This is a simple example. so the "in_progress" status is shown as "en cours" on the ticket page. I've tried this : _supported_cmds = { [snip] 'en_cours' : '_cmdEnCours' } and : def _cmdEnCours(self, ticket): ticket['status'] = 'in_progress' or : def _cmdEnCours(self, ticket): ticket['status'] = 'en cours' What can I do to track down the issue ? NB : I also feel like the post-commit hook python script by Stephen Hansen lives a lot better with my accented characters in keywords when it defines its encoding (wondering whether this script could have a config file aside to it, for user to customise keywords and status without modifying python code) : # -*- coding: utf-8 -*- On another hand, it may be fine to have "options" to the status change such as stated below : changes status to in_QA and assign it to somebody. It would mean rewrting of the command regexp (example : "fixed #1 QA johndoe" would change status to "in_QA" and assign it to johndoe). Barbara On 27 oct 2008, 15:34, "Chris Shelton" <cshel...@shelton-family.net> wrote: > Jani, > > On Mon, Oct 27, 2008 at 6:37 AM, Jani Tiainen <rede...@gmail.com> wrote: > > > Since I've now custom workflow where developer fixedticketgoes to > > "testing" stage (and is assigned to tester), what I need to modify to > > make post-commit-hook to follow same convention? > > This is very lightly tested, but something like the following should work: > > --- /usr/share/doc/trac-0.11.1/contrib/trac-post-commit-hook > 2008-08-20 14:30:16.000000000 -0400 > +++ trac-post-commit-hook 2008-09-22 16:43:05.000000000 -0400 > @@ -192,8 +192,9 @@ > > def_cmdClose(self,ticket): > - ticket['status'] = 'closed' > - ticket['resolution'] = 'fixed' > + ticket['status'] = 'in_QA' > +# ticket['status'] = 'closed' > +# ticket['resolution'] = 'fixed' > > def _cmdRefs(self,ticket): > pass --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---