Re: CommitTicketUpdater does not close ticket

125 views
Skip to first unread message

RjOllos

unread,
Jun 30, 2012, 6:54:48 PM6/30/12
to trac-...@googlegroups.com
Some otheres were reporting this issue recently. You might want to take a look at:

https://groups.google.com/d/topic/trac-users/BV1K8shUi6U/discussion

Markus

unread,
Jul 2, 2012, 4:00:03 AM7/2/12
to trac-...@googlegroups.com
I did some debugging.
The problem is that inside _get_functions(self): the cmd string gets set to "\"close\"" instead of "close".
These additional " cause my problem. I guess the problem is caused by Python 2.7.3rc2, used by debian wheezy.

As  a workaround i added one line to /usr/lib/python2.7/dist-packages/tracopt/ticket/commit_updater.py : _parse_message()
            func = functions.get(cmd.lower())
+          if not func: func = functions.get("\"%s\""%cmd.lower())
            if not func and self.commands_refs.strip() == '<ALL>':

You also need to remove the commit_update.pyc file and restart apache.

Markus

unread,
Jul 2, 2012, 5:46:57 AM7/2/12
to trac-...@googlegroups.com
The real problem was the "close" thing in the config file. After changing
  commit_ticket_update_commands.close = "close" 
to
  commit_ticket_update_commands.close = close 
everything works as expected.
Reply all
Reply to author
Forward
0 new messages