Modify

Opened 5 years ago

Closed 5 years ago

#5377 closed (fixed)

'too many values to unpack' error when calling getAvailabaleActions()

Reported by: stp Owned by: osimons
Priority: normal Component: XmlRpcPlugin
Severity: Keywords:
Cc: Trac Release: 0.11

Description (last modified by stp)

I get an exception if I call the deprecated getAvailabaleActions() method in trunk:

2009-06-13 18:51:46,566 Trac[ticket] WARNING: Rpc ticket.getAvailableActions is deprecated
2009-06-13 18:51:46,568 Trac[default_workflow] DEBUG: render_ticket_action_control: action "leave"
2009-06-13 18:51:46,569 Trac[default_workflow] DEBUG: render_ticket_action_control: action "reopen"
2009-06-13 18:51:46,569 Trac[ticket] DEBUG: Rpc ticket.getActions for ticket 1, user anonymous: [('leave', 'leave', '.', []), ('reopen', 'reopen', u"Next status will be 'reopened'.", [])]
2009-06-13 18:51:46,569 Trac[web_ui] ERROR: too many values to unpack
2009-06-13 18:51:46,569 Trac[web_ui] ERROR: Traceback (most recent call last):
  File "/home/stp/.workspace/xmlrpcplugin/tracrpc/web_ui.py", line 60, in process_request
    # Handle XML-RPC call
  File "/home/stp/.workspace/xmlrpcplugin/tracrpc/api.py", line 85, in __call__
    result = self.callable(req, *args)
  File "/home/stp/.workspace/xmlrpcplugin/tracrpc/ticket.py", line 72, in getAvailableActions
    return [action for action, inputs in self.getActions(req, id)]
ValueError: too many values to unpack

Attachments (0)

Change History (2)

comment:1 Changed 5 years ago by stp

  • Description modified (diff)

comment:2 Changed 5 years ago by osimons

  • Resolution set to fixed
  • Status changed from new to closed

(In [6050]) XmlRpcPlugin: Oops. Forgot to change ticket.getAvailableActions() to account for receving label and hints as well. Closes #5377.

Thanks, stp.

Add Comment

Modify Ticket

Action
as closed The owner will remain osimons.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.