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 )
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
Description: | modified (diff) |
---|
comment:2 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
(In [6050]) XmlRpcPlugin: Oops. Forgot to change
ticket.getAvailableActions()
to account for receving label and hints as well. Closes #5377.Thanks, stp.