Commits

Anonymous committed ab85181

[svn r6059] XmlRpcPlugin: Problem with `ticket.getAction()` accessing an attribute not all plugins may have - in this case triggered by `DeleteTicket.py` sample plugin. Closes #5387.

  • Participants
  • Parent commits 87c456e

Comments (0)

Files changed (1)

trunk/tracrpc/ticket.py

             hints = []
             first_label = None
             for controller in ts.action_controllers:
-                if action in controller.actions.keys():
+                if action in controller.get_ticket_actions(req, t):
                     label, widget, hint = \
                         controller.render_ticket_action_control(req, t, action)
                     fragment += widget