Modify

Opened 15 years ago

Closed 15 years ago

#5377 closed (fixed)

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

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

Description (last modified by Steffen Pingel)

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 15 years ago by Steffen Pingel

Description: modified (diff)

comment:2 Changed 15 years ago by osimons

Resolution: fixed
Status: newclosed

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

Thanks, stp.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain osimons.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.